The Byte.GetTypeCode() method in C# returns the TypeCode for value type Byte.
Syntax
Following is the syntax −
public TypeCode GetTypeCode ();
Example
Let us now see an example to implement the Byte.GetTypeCode() method −
using System;
public class Demo {
public static void Main(){
byte val1;
val1 = 50;
TypeCode type = val1.GetTypeCode();
Console.WriteLine("TypeCode = "+type);
}
}Output
This will produce the following output −
TypeCode = Byte