Javatpoint Logo
Javatpoint Logo

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




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA