AmitDiwan has Published 10740 Articles

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

212 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

235 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

205 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

135 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

184 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

154 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

132 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

Check if two StringDictionary objects are equal or not in C#

AmitDiwan

AmitDiwan

Updated on 05-Dec-2019 10:53:23

180 Views

To check if two StringDictionary objects are equal or not, the code is as follows −Example Live Demousing System; 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

Check if two StringCollection objects are equal in C#

AmitDiwan

AmitDiwan

Updated on 05-Dec-2019 10:48:15

180 Views

To check if two StringCollection objects are equal, the code is as follows −Example Live Demousing System; using System.Collections.Specialized; public class Demo {    public static void Main() {       StringCollection strCol1 = new StringCollection();       strCol1.Add("Accessories");       strCol1.Add("Books");       strCol1.Add("Electronics");     ... Read More

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

AmitDiwan

AmitDiwan

Updated on 05-Dec-2019 10:42:04

143 Views

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

Advertisements