GetType Operator - VB.Net

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.
This operator is available in VBA

Dim t As Type = GetType(String) 

object.GetType() Method

Do not confuse this with the .NET Framework object.GetType()


C# Equivalent

There is no equivalent in C#.


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