AmitDiwan has Published 11365 Articles

Decimal Struct in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 05:37:27

303 Views

The Decimal Struct in C# Represents a decimal floating-point number. The Decimal value type represents decimal numbers ranging from positive 79, 228, 162, 514, 264, 337, 593, 543, 950, 335 to negative 79, 228, 162, 514, 264, 337, 593, 543, 950, 335. The default value of a Decimal is 0.Let ... Read More

UInt64 Struct in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 05:34:04

334 Views

The UInt64 struct represents a 64-bit unsigned integer. The UInt64 value type represents unsigned integers with values ranging from 0 to 18, 446, 744, 073, 709, 551, 615.Let us now see some examples of UInt64 Struct methods −UInt64.CompareTo()The UInt64.CompareTo() method in C# is used to compare the current instance to ... Read More

Uri.IsWellFormedOriginalString() Method in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 05:26:59

30 Views

The Uri.IsWellFormedOriginalString() method in C# indicates whether the string used to construct this Uri was well-formed and is not required to be further escaped.SyntaxFollowing is the syntax −public bool IsWellFormedOriginalString ();ExampleLet us now see an example to implement the Uri.IsWellFormedOriginalString() method −using System; public class Demo {    public static ... Read More

Uri.IsHexEncoding() Method in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 05:24:17

21 Views

The Uri.IsHexEncoding() method in C# determines whether a character in a string is hexadecimal encoded.SyntaxFollowing is the syntax −public static bool IsHexEncoding (string pattern, int index);Above, the pattern parameter is the string to check, whereas the index is the location in pattern to check for hexadecimal encoding.ExampleLet us now see ... Read More

UInt16.MinValue Field in C# with Examples

AmitDiwan

AmitDiwan

Updated on 13-Nov-2019 07:42:02

82 Views

The UInt16.MinValue field in C# represents the minimum possible value of the 16-bit unsigned integer.SyntaxFollowing is the syntax −public const ushort MinValue = 0;ExampleLet us now see an example to implement the UInt16.MinValue field −using System; public class Demo {    public static void Main(){       ushort val1 ... Read More

Uri.IsBaseOf(Uri) Method in C#

AmitDiwan

AmitDiwan

Updated on 13-Nov-2019 07:08:36

102 Views

The Uri.IsBaseOf() method in C# is used to determine whether the current Uri instance is a base of the specified Uri instance.SyntaxFollowing is the syntax −public bool IsBaseOf (Uri uri);Above, the parameter Uri is the specified Uri instance to test.ExampleLet us now see an example to implement the Uri.IsBaseOf() method ... Read More

MathF.Ceiling() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 13-Nov-2019 07:06:30

236 Views

The MathF.Ceiling() method in C# is used to find the smallest integer greater than or equal to the float value in the argument.SyntaxFollowing is the syntax −public static float Ceiling (float val);Above, Val is the floating-point value.ExampleLet us now see an example to implement the MathF.Ceiling() method −using System; class ... Read More

MathF.Cbrt() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 13-Nov-2019 07:05:14

45 Views

The MathF.Cbrt() method in C# is used to return the cube root of a floating-point value.SyntaxFollowing is the syntax −public static float Cbrt (float val);ExampleLet us now see an example to implement the MathF.Cbrt() method −using System; class Demo {    public static void Main(){       float val1 ... Read More

Char.IsNumber() Method in C#

AmitDiwan

AmitDiwan

Updated on 13-Nov-2019 07:04:02

217 Views

The Char.IsNumber() method in C# is used to indicate whether the specified Unicode character is categorized as a number.SyntaxFollowing is the syntax −public static bool IsNumber (char ch);Above, the parameter ch is the Unicode character to evaluate.ExampleLet us now see an example to implement the Char.IsNumber() method −using System; public ... Read More

MathF.Pow() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 13-Nov-2019 07:02:54

150 Views

The MathF.Pow() method in C# is used to compute a number raise to the power of another number.SyntaxFollowing is the syntax −public static float Pow (float val1, float val2);Above, val1 is the floating-point number raised to a power. The val2 parameter is the power or exponent.ExampleLet us now see an ... Read More

Advertisements