VB.Net相当于^运算符在C# [英] VB.Net equivalent of ^ operator in C#

查看:868
本文介绍了VB.Net相当于^运算符在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是在VB.Net相当于运营商的 ^ (这是C#)

What is the equivalent operator in VB.Net for ^ (this is for C#)

推荐答案

借助异或操作者是等价

对两个布尔表达式的逻辑排除,或两个数字表达式按位排斥。

Performs a logical exclusion on two Boolean expressions, or a bitwise exclusion on two numeric expressions.

C#的 ^ 运算符是:

The C# ^ operator is:

二元^运算符预定义的整数类型和布尔。对于整型,^计算操作数的按位异或。为布尔操作数,^计算逻辑异或操作数的;也就是说,结果为真,当且仅当确切的一个操作数是真实的。

Binary ^ operators are predefined for the integral types and bool. For integral types, ^ computes the bitwise exclusive-OR of its operands. For bool operands, ^ computes the logical exclusive-or of its operands; that is, the result is true if and only if exactly one of its operands is true.

如果你指的是VB.NET 电运营商 ^


If you mean the VB.NET power operator ^:

引发了一些给另一个号码的权力

Raises a number to the power of another number.

它没有一个C#等效 - 你需要使用的 Math.Pow

It doesn't have a C# equivalent - you need to use Math.Pow.

有比较两种语言的语法和特性的一些名单 - 我喜欢的这个这个

There are a few lists comparing syntax and features of both languages - I like this one and this one.

这篇关于VB.Net相当于^运算符在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆