C# String GetType
Description
String GetType
gets the Type of the current instance.
Syntax
String.GetType
has the following syntax.
public Type GetType()
Returns
String.GetType
method returns The exact runtime type of the current instance.
Example
The following example demonstrates the GetType method.
// w ww. j av a2 s . com
using System;
class GetHashCode
{
public static void Main()
{
String Operand = "a";
Console.WriteLine(Operand.GetType( ) );
}
}
The code above generates the following result.