typeof Operator

The typeof operator in C# on the other hand returns an instance of the System.Type class containing type declarations of the type you pass to it.

Type t = typeof(string); 


VB.Net Equivalent

The equivalent operator in VB.Net is the GetType operator
There is a TypeOf Operator in VB.Net but it has a different meaning - which is extremely confusing.


© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext