 
  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
UInt32.GetTypeCode() Method in C# with Examples
The UInt32.GetTypeCode() method in C# is used to return the TypeCode for value type UInt32.
Syntax
Following is the syntax −
public TypeCode GetTypeCode ();
Example
Let us now see an example to implement the UInt32.GetTypeCode() method −
using System; public class Demo {    public static void Main(){       uint val1 = 55;       uint val2 = 100;       TypeCode type1 = val1.GetTypeCode();       TypeCode type2 = val2.GetTypeCode();       Console.WriteLine("Typecode for val1 = "+type1);       Console.WriteLine("Typecode for val2 = "+type2);    } } Output
This will produce the following output −
Typecode for val1 = UInt32 Typecode for val2 = UInt32
Example
Let us now see another example to implement the UInt32.GetTypeCode() method −
using System; public class Demo {    public static void Main(){       uint val1 = UInt32.MinValue;       uint val2 = 0;       TypeCode type1 = val1.GetTypeCode();       TypeCode type2 = val2.GetTypeCode();       Console.WriteLine("Typecode for val1 = "+type1);       Console.WriteLine("Typecode for val2 = "+type2);    } } Output
This will produce the following output −
Typecode for val1 = UInt32 Typecode for val2 = UInt32
Advertisements
 