AmitDiwan has Published 10744 Articles

Get the hash code for the current Int64 instance in C#

AmitDiwan

AmitDiwan

Updated on 05-Dec-2019 11:51:00

141 Views

To get the hash code for the current Int64 instance, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       long val1 = 8768768768;       long val2 = 7889765555;       Console.WriteLine("Value1 = "+val1);     ... Read More

Compare this instance is equal to a specified object or Int64 in C#

AmitDiwan

AmitDiwan

Updated on 05-Dec-2019 11:45:31

88 Views

To compare this instance is equal to a specified object or Int64, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       long val1 = 150;       long val2 = 240;       Console.WriteLine("Value1 = "+val1); ... Read More

Check whether the Unicode character is a lowercase letter in C#

AmitDiwan

AmitDiwan

Updated on 05-Dec-2019 11:30:32

228 Views

To check whether the Unicode character is a lowercase letter, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       bool res;       char val = 'K';       Console.WriteLine("Value = "+val);       res ... Read More

Check whether the specified Unicode character is a letter or a decimal digit in C#

AmitDiwan

AmitDiwan

Updated on 05-Dec-2019 11:25:35

182 Views

To check whether the specified Unicode character is a letter or a decimal digit, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       bool res;       char val = '1';       Console.WriteLine("Value = "+val); ... Read More

Get the TypeCode for value type Char in C#

AmitDiwan

AmitDiwan

Updated on 05-Dec-2019 11:22:52

213 Views

To get the TypeCode for value type Char, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       char val = '5';       bool res;       Console.WriteLine("Hashcode for val = "+val.GetHashCode());       res ... Read More

Remove from the specified index of a SortedList in C#

AmitDiwan

AmitDiwan

Updated on 05-Dec-2019 11:20:22

178 Views

To remove from the specified index of a SortedList, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo {    public static void Main(String[] args) {       SortedList sortedList = new SortedList();       sortedList.Add("A", "1");       sortedList.Add("B", "2");     ... Read More

Remove entry with specified key from the StringDictionary in C#

AmitDiwan

AmitDiwan

Updated on 05-Dec-2019 11:14:01

117 Views

To remove entry with specified key from the StringDictionary, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo {    public static void Main() {       StringDictionary strDict1 = new StringDictionary();       strDict1.Add("A", "John");       strDict1.Add("B", "Andy");   ... Read More

Remove entry with specified key from OrderedDictionary in C#

AmitDiwan

AmitDiwan

Updated on 05-Dec-2019 11:10:13

165 Views

To remove entry with specified key from OrdererdDictionary in C#, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo {    public static void Main() {       OrderedDictionary dict = new OrderedDictionary();       dict.Add("A", "Books");       dict.Add("B", "Electronics"); ... Read More

Get the object at the beginning of the Queue – Peek Operation in C#

AmitDiwan

AmitDiwan

Updated on 05-Dec-2019 11:04:35

136 Views

To get the object at the beginning of the Queue, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo {    public static void Main() {       Queue queue = new Queue();       queue.Enqueue("A");       queue.Enqueue("B");       queue.Enqueue("C"); ... Read More

Get or set the value associated with specified key in SortedList in C#

AmitDiwan

AmitDiwan

Updated on 05-Dec-2019 10:57:14

118 Views

To get or set the value associated with specified key in SortedList, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo {    public static void Main() {       SortedList list = new SortedList ();       list.Add("A", "Books");       list.Add("B", ... Read More

Advertisements