AmitDiwan has Published 10744 Articles

Uri.FromHex() Method in C#

AmitDiwan

AmitDiwan

Updated on 08-Nov-2019 07:05:15

68 Views

The Uri.FromHex() method in C# is used to get the decimal value of a hexadecimal digit.SyntaxFollowing is the syntax −public static int FromHex (char digit);Above, the parameter digit is the hexadecimal digit (0-9, a-f, A-F) to convert.ExampleLet us now see an example to implement the Uri.FromHex() method −using System; public ... Read More

Uri.EscapeDataString(String) Method in C#

AmitDiwan

AmitDiwan

Updated on 08-Nov-2019 07:02:07

1K+ Views

The Uri.EscapeDataString() method in C# converts a string to its escaped representation.SyntaxFollowing is the syntax −public static string EscapeDataString (string str);Above, the string str is the string to escape.ExampleLet us now see an example to implement the Uri.EscapeDataString() method −using System; public class Demo {    public static void Main(){ ... Read More

UInt32.ToString() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 08-Nov-2019 07:00:29

2K+ Views

The UInt32.ToString() method in C# is used to convert the numeric value of the current UInt32 instance to its equivalent string representation.SyntaxFollowing is the syntax −public override string ToString();ExampleLet us now see an example to implement the UInt32.ToString() method −using System; public class Demo {    public static void Main(){ ... Read More

UInt32.GetTypeCode() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 08-Nov-2019 06:54:17

110 Views

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

Math Class Fields with Examples in C#

AmitDiwan

AmitDiwan

Updated on 08-Nov-2019 06:52:17

140 Views

The Math class in C# has Math.E and Math.PI fields. Let us see an example of both the fields −Math.ESyntaxIt is the natural logarithmic base specified by the constant e. The syntax is as follows −public const double E = 2.71828182845905;ExampleLet us now see an example −using System; public class ... Read More

Decimal.ToString() Method in C#

AmitDiwan

AmitDiwan

Updated on 08-Nov-2019 06:47:29

234 Views

The Decimal.ToString() method in C# is used to convert the numeric value of this instance to its equivalent string representation.SyntaxFollowing is the syntax −public override string ToString ();ExampleLet us now see an example to implement the Decimal.ToString() method −using System; public class Demo{    public static void Main(){     ... Read More

Double.ToString Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 07:31:15

197 Views

The Double.ToString() method in C# is used to convert the numeric value of this instance to its equivalent string representation.SyntaxFollowing is the syntax −public override string ToString ();ExampleLet us now see an example to implement the Double.ToString() method −using System; public class Demo{    public static void Main(){     ... Read More

Console.Clear Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 07:27:24

189 Views

The Console.Clear method in C# is used to clear the console buffer and corresponding console window of display information.SyntaxFollowing is the syntax −public static void Clear ();ExampleLet us now see an example before implementing the Console.Clear method −using System; public class Demo {    public static void Main(){     ... Read More

Uri.ToString() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 07:24:49

205 Views

The Uri.ToString() method in C# is used to get a canonical string representation for the specified Uri instance.SyntaxFollowing is the syntax −public override string ToString ();ExampleLet us now see an example to implement the Uri.ToString() method −using System; public class Demo {    public static void Main(){       ... Read More

Uri.MakeRelativeUri(Uri) Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 07:22:50

191 Views

The Uri.MakeRelativeUri(Uri) method in C# is used to determine the difference between two Uri instances.SyntaxFollowing is the syntax −public Uri MakeRelativeUri (Uri uri);Above, the URI is the URI to compare to the current URI.ExampleLet us now see an example to implement the Uri.MakeRelativeUri(Uri) method −using System; public class Demo { ... Read More

Advertisements