96
C# String GetType()
The C# GetType() method is used to get type of current object. It returns the instance of Type class which is used for reflection.
Signature
Parameters
It does not take any parameter.
Return
It returns object of Type class.
C# String GetType() Method Example
Output:
System.String
Next TopicC# String GetTypeCode()