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