This operator returns an instance of the System.Type class containing type declarations of the type you pass to it.

System.Type type = typeof(int); 

The typeof operator cannot be overloaded.


The way to check if an object is of a particular type is to use the TypeOf operator

If (TypeOf myobject Is Dog) Then 
End If

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