C# StringComparer GetType
Description
StringComparer GetType
gets the Type of the current instance.
Syntax
StringComparer.GetType
has the following syntax.
public Type GetType()
Returns
StringComparer.GetType
method returns The exact runtime type of the current instance.
Example
using System;/*from w w w . ja va2 s .c om*/
class Sample
{
public static void Main()
{
StringComparer invCmp = StringComparer.Ordinal;
Console.WriteLine(invCmp.GetType());
}
}
The code above generates the following result.