Home > Net >  VB.NET is there and is the equivalent of the operator or function in c #
VB.NET is there and is the equivalent of the operator or function in c #

Time:03-25

One of the VB.NET is , there is also an operator in c # is , they don't do the same thing,

I want to ask, did in VB.NET and c # is the same of the operator or function?

CodePudding user response:

Feeling is in c # is a type of comparison, relative to the=in vb judgment, such as whether a variable is empty:
Is Nothing
IsNot Nothing
Compared with the c #
==null
!=null

CodePudding user response:

https://docs.microsoft.com/zh-cn/dotnet/visual-basic/language-reference/operators/typeof-operator

 
Result=TypeOf objectexpression Is typename
Result=TypeOf objectexpression IsNot typename
  • Related