VB.Net - GetType Operator

This has nothing to do with the .NET framework and was originally part of Visual Basic 6.0.
The GetType operator requires that you pass the data type in.
Do not confuse this with the .NET Framework object.GetType() method.

Dim t As Type = GetType(String) 

C# Equivalent

The equivalent in C# is to use the typeof Operator.


VBA

This operator is not available in VBA.


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