C# Int32 GetTypeCode
Description
Int32 GetTypeCode
returns the TypeCode for value type
Int32.
Syntax
Int32.GetTypeCode
has the following syntax.
public TypeCode GetTypeCode()
Returns
Int32.GetTypeCode
method returns The enumerated constant, TypeCode.Int32.
Example
The following example demonstrates the Int32.GetTypeCode() method.
using System;// w ww . j a v a 2 s .c om
public class ValueComparison
{
public static void Main()
{
int mainValue = 16325;
Console.WriteLine(mainValue.GetTypeCode());
}
}
The code above generates the following result.