VOOZH about

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

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


  • Courses
  • Tutorials
  • Interview Prep

Decimal.GetTypeCode Method in C# with Examples

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

Explore