Double.GetTypeCode() Method in C# Last Updated : 12 Apr, 2019 Comments Improve Suggest changes Like Article Like Report Double.GetTypeCode() Method is used to return the TypeCode for value type Double. Syntax: public TypeCode GetTypeCode (); Return Value: This method returns the enumerated constant, Double. Below programs illustrate the use of Double.GetTypeCode() Method: Example 1: csharp // C# program to demonstrate the // Double.GetTypeCode() // Method using System; using System.Globalization; class GFG { // Main Method public static void Main() { // Declaring and initializing value1 double value1 = 10d; // getting the typeCode // using GetTypeCode() method TypeCode value = value1.GetTypeCode(); // Display the TypeCode Console.WriteLine("TypeCode is {0}", value); } } Output: TypeCode is Double Example 2: csharp // C# program to demonstrate the // Double.GetTypeCode() // Method using System; using System.Globalization; class GFG { // Main Method public static void Main() { // calling get() method get(5d); get(5.5d); get(10d); get(7.5d); } // defining get() method public static void get(double value1) { // getting the TypeCode // using GetTypeCode() method TypeCode value = value1.GetTypeCode(); // Display the TypeCode Console.WriteLine("TypeCode is {0}", value); } } Output: TypeCode is Double TypeCode is Double TypeCode is Double TypeCode is Double Reference: https://docs.microsoft.com/en-us/dotnet/api/system.double.gettypecode?view=netframework-4.7.2 Comment More infoAdvertise with us Next Article Double.GetTypeCode() Method in C# rohitprasad3 Follow Improve Article Tags : C# CSharp-method CSharp-Double-Struct Similar Reads Double.GetHashCode() Method in C# Double.GetHashCode() Method is used to return the hash code for this instance. Syntax: public override int GetHashCode (); Return Value: This method returns a 32-bit signed integer hash code. Below programs illustrate the use of Double.GetHashCode() Method: Example 1: csharp // C# program to demonst 1 min read DateTime.GetTypeCode() Method in C# This method is used to return the TypeCode for value type DateTime. Syntax: public TypeCode GetTypeCode (); Return Value: This method returns the enumerated constant, DateTime. Below programs illustrate the use of DateTime.GetTypeCode() Method Example 1: csharp // C# program to demonstrate the // Da 1 min read C# | Byte.GetTypeCode() Method This method is used to return the TypeCode for value type Byte. Syntax: public TypeCode GetTypeCode (); Return Value: It returns the enumerated constant, Byte.Below programs illustrate the use of Byte.GetTypeCode() Method:Example 1: CSharp // C# program to demonstrate // Byte.GetTypeCode() Method us 2 min read C# | Type.GetTypeCode() Method Type.GetTypeCode() Method is used to get the underlying type code of the specified Type. Syntax: public static TypeCode GetTypeCode (Type type); Here, it takes the type whose underlying type code to get. Return Value: This method returns the code of the underlying type, or Empty if type is null. Bel 2 min read Decimal.GetTypeCode Method in C# with Examples 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: csharp // C# program to illustrate the 1 min read Like