AmitDiwan has Published 10740 Articles

Int16.CompareTo() Method in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:38:49

6K+ Views

The Int16.CompareTo() method in C# is used to compare this instance to a specified object or another Int16 instance and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object or the other Int16 instance.SyntaxFollowing ... Read More

Char.GetUnicodeCategory(String, Int32) Method with Examples in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:36:07

242 Views

The Char.GetUnicodeCategory(String, Int32) method in C# categorizes the character at the specified position in a specified string into a group identified by one of the UnicodeCategory values.SyntaxFollowing is the syntax −public static System.Globalization.UnicodeCategory GetUnicodeCategory (string str, int index);Above, str is a string, whereas the index is the character position in ... Read More

Char.GetTypeCode() Method with Examples in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:34:13

137 Views

The Char.GetTypeCode() method in C# is used to return the TypeCode for value type Char.SyntaxFollowing is the syntax −public TypeCode GetTypeCode ();ExampleLet us now see an example to implement the Char.GetTypeCode() method −using System; public class Demo {    public static void Main(){       char val = '5'; ... Read More

Char.GetNumericValue() Method in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:32:15

624 Views

The Char.GetNumericValue() method in C# is used to convert the specified numeric Unicode character to a double-precision floating-point number.SyntaxFollowing is the syntax −public static double GetNumericValue (char ch);Above, the parameter ch is the Unicode character to convert.ExampleLet us now see an example to implement the Char.GetNumericValue() method −using System; public ... Read More

Char.GetHashCode() Method with Examples in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:29:22

209 Views

The Char.GetHashCode() method in C# is used to return the hash code for the current instance.SyntaxFollowing is the syntax −public override int GetHashCode ();ExampleLet us now see an example to implement the Char.GetHashCode() method −using System; public class Demo {    public static void Main(){       char val ... Read More

Char.Equals() Method in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:27:06

3K+ Views

The Char.Equals() method in C# is used to return a value that indicates whether this instance is equal to a specified object or Char value.SyntaxFollowing is the syntax −public bool Equals (char ob);Above, ob is an object to compare to this instance.ExampleLet us now see an example to implement the ... Read More

Decimal.ToByte() Method in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:25:45

251 Views

The Decimal.ToByte() method in C# is used to convert the value of the specified Decimal to the equivalent 8-bit unsigned integer.SyntaxFollowing is the syntax −public static byte ToByte (decimal val);Above, Val is the decimal number to convert.ExampleLet us now see an example to implement the Decimal.ToByte() method −using System; public ... Read More

Decimal.GetTypeCode() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:22:17

118 Views

The Decimal.GetTypeCode() method in C# is used to returns the TypeCode for value type Decimal.SyntaxFollowing is the syntax −public TypeCode GetTypeCode ();ExampleLet us now see an example to implement the Decimal.GetTypeCode() method −using System; public class Demo {    public static void Main(){       Decimal val = Decimal.MaxValue; ... Read More

Decimal.GetHashCode() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:21:01

149 Views

The Decimal.GetHashCode() method in C# is used to return the hash code for the current instance.SyntaxFollowing is the syntax −public override int GetHashCode ();ExampleLet us now see an example to implement the Decimal.GetHashCode() method −using System; public class Demo {    public static void Main(){       Decimal val ... Read More

Decimal.Ceiling() Method in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 08:17:14

415 Views

The Decimal.Ceiling() method in C# is used to return the smallest integral value greater than or equal to the specified decimal number.SyntaxFollowing is the syntax −public static decimal Ceiling (decimal val);Above, Val is the decimal number.ExampleLet us now see an example to implement the Decimal.Ceiling() method −using System; public class ... Read More

Advertisements