AmitDiwan has Published 10740 Articles

Single.Equals() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 02-Dec-2019 12:11:42

109 Views

The Single.Equals() method in C# is used to return a value indicating whether two instances of Single represent the same value.Syntaxpublic bool Equals (float ob); public override bool Equals (object ob);The parameter ob for the both the syntaxes is an object to compare with this instance.Example Live Demousing System; public class ... Read More

C# BitConverter.ToChar() Method

AmitDiwan

AmitDiwan

Updated on 02-Dec-2019 12:07:51

221 Views

The BitConverter.ToChar() method in C# is used to returns a Unicode character converted from two bytes at a specified position in a byte array.Syntaxpublic static char ToChar (byte[] value, int begnIndex);Above, val is the byte array, whereas begnIndex is the beginning position within val.Example Live Demousing System; public class Demo { ... Read More

Boolean.GetHashCode() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 02-Dec-2019 11:25:31

173 Views

The Boolean.GetHashCode() method in C# is used to return the hash code for this instance.Syntaxpublic override int GetHashCode ();Example Live Demousing System; public class Demo {    public static void Main(String[] args){       string str = "JackSparrow!";       bool val = true;       char[] arr ... Read More

Uri.HexEscape(Char) Method in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:57:07

182 Views

The Uri.HexEscape() method in C# is used to convert a specified character into its hexadecimal equivalent.SyntaxFollowing is the syntax −public static string HexEscape (char ch);Above, the parameter ch is the character to convert to hexadecimal representation.ExampleLet us now see an example to implement the Uri.HexEscape() method −using System; public class ... Read More

UInt32.GetHashCode() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:56:00

145 Views

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

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

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:53:59

153 Views

Use the Console.WindowWidth Property to change the WindowWidth of the Console.ExampleLet us now see an example −using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Demo {    public static void Main (string[] args) {       Console.InputEncoding = Encoding.ASCII;       Console.WriteLine("Input Encoding Scheme = ... Read More

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

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:52:56

154 Views

Use the Console.WindowTop Property to change the WindowTop of the Console in C#.ExampleLet us now see an example −using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Demo {    public static void Main (string[] args) {       Console.InputEncoding = Encoding.ASCII;       Console.WriteLine("Input Encoding ... Read More

UInt32.Equals() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:51:30

164 Views

The UInt32.Equals() method in C# returns a value indicating whether this instance is equal to a specified object or UInt32.SyntaxFollowing is the syntax −public override bool Equals (object ob); public bool Equals (uint ob);Above, the parameter ob for the 1st syntax is an object to compare to this instance and ... Read More

UInt32.CompareTo() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:49:45

366 Views

The UInt32.CompareTo() method in C# is used to compare the current instance to a specified object or UInt32 and returns an indication of their relative values.SyntaxFollowing is the syntax −public int CompareTo (object val); public int CompareTo (uint val;Above, the Val for the 1st syntax is an object to compare. ... Read More

How to change the WindowLeft of the Console

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:47:00

154 Views

Use the Console.WindowLeft Property to change the WindowLeft of the Console in C#.ExampleLet us now see an example −using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Demo {    public static void Main (string[] args) {       Console.InputEncoding = Encoding.ASCII;       Console.WriteLine("Input Encoding ... Read More

Advertisements