AmitDiwan has Published 10744 Articles

Uri.IsWellFormedOriginalString() Method in C#

AmitDiwan

AmitDiwan

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

76 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

74 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

160 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

164 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

378 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

98 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

375 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

248 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

How to change the CursorSize of the Console in C#?

AmitDiwan

AmitDiwan

Updated on 13-Nov-2019 07:01:33

220 Views

To change the CursorSize of the Console in C#, use the Console.CursorSize property in C#.ExampleLet us see an example −using System; class Demo {    public static void Main (string[] args) {       Console.BackgroundColor = ConsoleColor.Blue;       Console.WriteLine("Background color changed = "+Console.BackgroundColor);       Console.ForegroundColor ... Read More

How to change the CursorLeft of the Console in C#?

AmitDiwan

AmitDiwan

Updated on 13-Nov-2019 07:00:13

311 Views

To change the CursorLeft of the Console in C#, use the Console.CursorLeft property.ExampleLet us see an example −using System; class Demo {    public static void Main (string[] args) {       Console.BackgroundColor = ConsoleColor.Blue;       Console.WriteLine("Background color changed = "+Console.BackgroundColor);       Console.ForegroundColor = ConsoleColor.Yellow; ... Read More

Advertisements