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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA