GetType
There is also a GetType operator
The equivalent of this in C# is TypeOf Operator
VB.Net
Dim t As Type = GetType(String)
GetType Method
This method is part of the .NET framework and is available in both C# and VB.Net
This method operators on an object instance.
System.Type.GetType("System.Int32")
switch (myobject.GetType().ToString())
{
case "" : break;
}
GetType().Name()
GetType().FullName
The object must be instantiated
© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext