
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 10744 Articles

AmitDiwan
330 Views
To get the capacity of a list, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo { public static void Main(String[] args){ List list1 = new List(); list1.Add("One"); list1.Add("Two"); list1.Add("Three"); ... Read More

AmitDiwan
265 Views
Let us see an example to get the Union of two HashSetExample Live Demousing System; using System.Collections.Generic; public class Demo { public static void Main(){ HashSet set1 = new HashSet(); set1.Add(100); set1.Add(200); set1.Add(300); set1.Add(400); ... Read More

AmitDiwan
145 Views
To check if HashSet and the specified collection contain the same elements, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo { public static void Main() { HashSet set1 = new HashSet(); set1.Add("One"); set1.Add("Two"); ... Read More

AmitDiwan
153 Views
To get an ICollection containing keys in OrderedDictionary, 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", "One"); dict.Add("2", "Two"); ... Read More

AmitDiwan
207 Views
To return the underlying type of the current enumeration type, the code is as follows −Example Live Demousing System; public class Demo { enum Vehicle {Car, Bus, Bike, Airplane} public static void Main() { try { Vehicle v = Vehicle.Bike; ... Read More

AmitDiwan
65 Views
To get the names of the members of the current enumeration type, the code is as follows −Example Live Demousing System; public class Demo { enum Vehicle {Car, Bus, Bike} public static void Main() { try { Type type = typeof(string); ... Read More

AmitDiwan
249 Views
To convert the specified Windows file time to an equivalent local time, the code is as follows −Example Live Demousing System; public class Demo { public static void Main() { DateTimeOffset offset = DateTimeOffset.FromFileTime(0); Console.WriteLine("DateTimeOffset = {0:dd} {0:y}, {0:hh}:{0:mm}:{0:ss} ", offset); } }OutputThis ... Read More

AmitDiwan
202 Views
To check if a thread belongs to managed thread pool or not, the code is as follows −Example Live Demousing System; using System.Threading; public class Demo { public static void Main() { Thread thread = new Thread(new ThreadStart(demo)); thread.Start(); } public static ... Read More

AmitDiwan
162 Views
To check if an array is synchronized or not, the code is as follows −Example Live Demousing System; public class Demo { public static void Main() { string[] products = new string[] { }; Console.WriteLine("One or more planets begin with 'E'? = {0}", ... Read More

AmitDiwan
129 Views
To check if the BitArray is read-only, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo { public static void Main() { BitArray arr1 = new BitArray(2); BitArray arr2 = new BitArray(2); arr1[0] = false; ... Read More