Open In App

C# | Byte.GetTypeCode() Method

Last Updated : 11 Aug, 2021
Summarize
Comments
Improve
Suggest changes
Share
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: 


Next Article

Similar Reads