Open In App

C# | Byte.GetTypeCode() Method

Last Updated : 11 Jul, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

This method is used to return the TypeCode for value type Byte.
 

Syntax: 

public TypeCode GetTypeCode ();


Return Value: It returns the enumerated constant, Byte.
Below programs illustrate the use of Byte.GetTypeCode() Method:
Example 1: 


Output: 
TypeCode of val1 is Byte
TypeCode of val2 is Boolean

 

Example 2:


Output: 
TypeCode of 12 is Byte
TypeCode of True is Boolean

 

Reference: 


Similar Reads