

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
Get the TypeCode for value type UInt64 in C#
To get the TypeCode for value type UInt64, the code is as follows −
Example
using System; public class Demo { public static void Main() { ulong val1 = 55; ulong 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 = UInt64 Typecode for val2 = UInt64
Example
Let us see another example −
using System; public class Demo { public static void Main() { uint val1 = UInt64.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 = UInt64 Typecode for val2 = UInt64
- Related Questions & Answers
- Get the TypeCode for value type Char in C#
- Get the TypeCode for value type Decimal in C#
- Get the TypeCode for value type Int32 in C#
- Get the TypeCode for value type UInt32 in C#
- Get the TypeCode for value type Int16 in C#
- Get the HashCode for the current UInt64 instance in C#
- How to get TypeCode in C#?
- Get the handle for the Type of a specified object C#
- Get a value indicating whether this instance is equal to a specified object or UInt64 in C#
- UInt64 Struct in C#
- How to get the value of the type attribute of a link in JavaScript?
- Get the type referenced by the specified type handle in C#
- Return True if first argument is a typecode lower/equal in type hierarchy in Python
- Get the underlying type of the current enumeration type C#
- Value Type vs Reference Type in C#
Advertisements