C# Boolean GetTypeCode
Description
Boolean GetTypeCode
returns the TypeCode for value type
Boolean.
Syntax
Boolean.GetTypeCode
has the following syntax.
public TypeCode GetTypeCode()
Returns
Boolean.GetTypeCode
method returns The enumerated constant, TypeCode.Boolean.
Example
The following code shows how to use the Boolean.GetTypeCode
.
using System;/*from w w w . j av a 2 s . c om*/
public class MainClass {
public static void Main(String[] argv){
Boolean b = true;
System.Console.WriteLine(b.GetTypeCode());
}
}
The code above generates the following result.