 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP 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
Get the TypeCode for value type Char in C#
To get the TypeCode for value type Char, the code is as follows −
Example
using System; public class Demo {    public static void Main() {       char val = '5';       bool res;       Console.WriteLine("Hashcode for val = "+val.GetHashCode());       res = val.Equals('m');       Console.WriteLine("Return Value = "+res);       Console.WriteLine("Numeric Value = "+Char.GetNumericValue(val));       TypeCode type = val.GetTypeCode();       Console.WriteLine("Type = "+type);    } }  Output
This will produce the following output −
Hashcode for val = 3473461 Return Value = False Numeric Value = 5 Type = Char
Example
Let us see another example −
using System; public class Demo {    public static void Main() {       char val = 'B';       TypeCode type = val.GetTypeCode();       Console.WriteLine("Type = "+type);    } }  Output
This will produce the following output −
Type = Char
Advertisements
 