Home » C# String GetType() method

C# String GetType() method

by Online Tutorials Library

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 

You may also like