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
107 Views
To get the number of strings in StringCollection, 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[] { "A", "B", "C", "D", "E", ... Read More
AmitDiwan
115 Views
To get or set the value associated with specified key in StringDictionary, the code is as follows −Example Live Demousing System; using System.Collections.Specialized; public class Demo { public static void Main() { StringDictionary strDict = new StringDictionary (); strDict.Add("A", "Books"); strDict.Add("B", ... Read More
AmitDiwan
161 Views
To remove from the specified index of the StringCollection, the code is as follows −Example Live Demousing System; using System.Collections.Specialized; public class Demo { public static void Main() { StringCollection stringCol = new StringCollection(); String[] arr = new String[] { "100", "200", "300", "400", ... Read More
AmitDiwan
127 Views
To get seventh element of the Tuple, the code is as follows −Example Live Demousing System; public class Demo { public static void Main(String[] args) { var tuple1 = Tuple.Create(75, 200, 500, 700, 100, 1200, 1500); var tuple2 = Tuple.Create(75, 200, 500, 700, 100, ... Read More
AmitDiwan
230 Views
To remove all elements from the Hashtable, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo { public static void Main() { Hashtable hash = new Hashtable(10); hash.Add("1", "A"); hash.Add("2", "B"); hash.Add("3", "C"); ... Read More
AmitDiwan
466 Views
To remove all elements from the Collection, 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(10); col.Add(20); col.Add(30); ... Read More
AmitDiwan
296 Views
To check whether the specified Unicode character is a punctuation mark, the code is as follow −Example Live Demousing System; public class Demo { public static void Main() { bool res; char val = 'q'; Console.WriteLine("Value = "+val); ... Read More
AmitDiwan
163 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
AmitDiwan
106 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
AmitDiwan
268 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