Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10740 Articles
AmitDiwan
136 Views
To copy the Collection elements to an array, the code is as follows −Example Live Demousing System; using System.Collections.ObjectModel; public class Demo { public static void Main(){ Collection col = new Collection(); col.Add("One"); col.Add("Two"); col.Add("Three"); ... Read More
AmitDiwan
287 Views
To copy BitArray elements to an Array, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo { public static void Main(){ BitArray arr = new BitArray(2); arr[0] = false; arr[1] = true; Console.WriteLine("Elements ... Read More
AmitDiwan
216 Views
To copy the stack to an array, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo { public static void Main(){ Stack stack = new Stack(); stack.Push(10); stack.Push(20); stack.Push(30); stack.Push(40); ... Read More
AmitDiwan
396 Views
To copy the entire LinkedList to Array, 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(100); list.AddLast(200); list.AddLast(300); int[] ... Read More
AmitDiwan
291 Views
To copy the elements of the collection over a range of elements in ArrayList, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo { public static void Main(){ ArrayList arrList = new ArrayList(); arrList.Add("A"); arrList.Add("B"); ... Read More
AmitDiwan
149 Views
To copy StringDictionary to Array at the specified index, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo { public static void Main(){ StringDictionary strDict = new StringDictionary(); strDict.Add("1", "SUV"); strDict.Add("2", "AUV"); ... Read More
AmitDiwan
144 Views
To copy StringCollection at the specified index of the array, the code is as follows −Example Live Demousing System; using System.Collections.Specialized; public class Demo { public static void Main(){ StringCollection strCol = new StringCollection(); String[] strArr = new String[] { "Tim", "Tom", "Sam", "Mark", ... Read More
AmitDiwan
166 Views
To copy OrderedDictionary elements to Array instance at the specified index, 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(1, "Harry"); dict.Add(2, ... Read More
AmitDiwan
117 Views
To copy ListDictionary to Array instance at the specified index, 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(1, "Harry"); dict.Add(2, "Mark"); ... Read More
AmitDiwan
121 Views
To add the specified key and value into HybridDictionary, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo { public static void Main(){ HybridDictionary dict = new HybridDictionary(); dict.Add("A", "Bags"); dict.Add("B", "Electronics"); ... Read More