Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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
Advertisements