Byte.GetTypeCode() Method in C#


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

Updated on: 08-Nov-2019

21 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements