VOOZH about

URL: https://www.geeksforgeeks.org/c-sharp/uint16-gettypecode-method-in-c-sharp-with-examples/

⇱ UInt16.GetTypeCode Method in C# with Examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

UInt16.GetTypeCode Method in C# with Examples

Last Updated : 11 Jul, 2025
UInt16.GetTypeCode method is used to get the TypeCode for value type UInt16.
Syntax: public TypeCode GetTypeCode (); Return Value: This method returns the enumerated constant UInt16.
Below programs illustrate the use of the above discussed-method: Example 1:
Output:
TypeCode for UInt16 is: UInt16
Example 2:
Output:
TypeCode for 0 is UInt16
TypeCode for 65535 is UInt16
Reference:
Comment
Article Tags:

Explore