AmitDiwan has Published 10740 Articles

Check if StringDictionary is synchronized in C#

AmitDiwan

AmitDiwan

Updated on 06-Dec-2019 11:13:40

143 Views

To check if StringDictionary is synchronized, 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");       strDict1.Add("C", ... Read More

Check if a SortedList object is synchronized in C#

AmitDiwan

AmitDiwan

Updated on 06-Dec-2019 10:55:53

176 Views

To check if a SortedList object is synchronized, 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("1", "One");       list.Add("2", "Two");       list.Add("3", ... Read More

Check if ListDictionary has a fixed size in C#

AmitDiwan

AmitDiwan

Updated on 06-Dec-2019 10:52:15

220 Views

To check if ListDictionary has a fixed size, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo {    public static void Main() {       ListDictionary dict1 = new ListDictionary();       dict1.Add("A", "Books");       dict1.Add("B", "Electronics");     ... Read More

Check if ListDictionary contains a specific key in C#

AmitDiwan

AmitDiwan

Updated on 06-Dec-2019 10:44:55

152 Views

To check if ListDictionary contains a specific key, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo {    public static void Main() {       ListDictionary dict1 = new ListDictionary();       dict1.Add("A", "Books");       dict1.Add("B", "Electronics");   ... Read More

Getting an enumerator that iterates through HashSet in C#

AmitDiwan

AmitDiwan

Updated on 06-Dec-2019 10:39:43

411 Views

To get an enumerator that iterates through HashSet, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo {    public static void Main(String[] args) {       HashSet set1 = new HashSet();       set1.Add("A");       set1.Add("B");       set1.Add("C");   ... Read More

Get the number of nodes contained in LinkedList in C#

AmitDiwan

AmitDiwan

Updated on 06-Dec-2019 10:26:03

291 Views

To get the number of nodes contained in the LinkedList, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo {    public static void Main() {       LinkedList list = new LinkedList();       list.AddLast("A");       list.AddLast("B");       list.AddLast("C"); ... Read More

Check if HybridDictionary has fixed size in C#

AmitDiwan

AmitDiwan

Updated on 06-Dec-2019 10:22:24

147 Views

To check if HybridDictionary has fixed size, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo {    public static void Main() {       HybridDictionary dict1 = new HybridDictionary();       dict1.Add("A", "Books");       dict1.Add("B", "Electronics");       ... Read More

Adding new node or value at the end of LinkedList in C#

AmitDiwan

AmitDiwan

Updated on 06-Dec-2019 10:18:15

171 Views

To add new node or value at the end of LinkedList, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo {    public static void Main() {       LinkedList list = new LinkedList();       list.AddLast("A");       list.AddLast("B");       ... Read More

Adding elements to the end of the ArrayList in C#

AmitDiwan

AmitDiwan

Updated on 06-Dec-2019 10:15:10

225 Views

To add elements to the end of the ArrayList, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo {    public static void Main(String[] args) {       ArrayList list = new ArrayList();       list.Add("Andy");       list.Add("Gary");       list.Add("Katie"); ... Read More

Adding an element to the List in C#

AmitDiwan

AmitDiwan

Updated on 06-Dec-2019 10:11:06

282 Views

To add an element to the List, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo {    public static void Main(String[] args) {       List list = new List();       list.Add("One");       list.Add("Two");       list.Add("Three");     ... Read More

Advertisements