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
284 Views
To find the index of first element in the array, the code is as follows −Example Live Demousing System; public class Demo { public static void Main() { string[] products = new string[] { "Andy", "Mark", "Gary", "Andre"}; Console.WriteLine("One or more name begin with ... Read More
AmitDiwan
181 Views
To find the last node in LinkedList containing the specified value, 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); ... Read More
AmitDiwan
1K+ Views
The SortedSet class in C# represents a collection of objects that is maintained in sorted order.Following are the properties of the SortedSet class −Sr.NoProperty & Description1ComparerGets the IComparer object that is used to order the values in the SortedSet.2CountGets the number of elements in the SortedSet.3MaxGets the maximum value in ... Read More
AmitDiwan
144 Views
To get the TypeCode for value type Int16, the code is as follows −Example Live Demousing System; public class Demo { public static void Main() { short val1 = 0; short val2 = Int16.MaxValue; Console.WriteLine("Value1 = "+val1); Console.WriteLine("Value2 ... Read More
AmitDiwan
126 Views
To get the members of the current Type, the code is as follows −Example Live Demousing System; using System.Reflection; public class Demo { public static void Main() { Type type = typeof(Subject); try { FieldInfo fieldInfo = type.GetField("SubName"); ... Read More
AmitDiwan
369 Views
To count the number of key/value pairs in 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(); hash.Add("A", "SUV"); hash.Add("B", "MUV"); ... Read More
AmitDiwan
284 Views
To insert an object at the top of the Stack, 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(100); stack.Push(150); stack.Push(175); ... Read More
AmitDiwan
336 Views
To insert an element into the ArrayList at the specified index, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo { public static void Main() { ArrayList list = new ArrayList(); list.Add("One"); list.Add("Two"); ... Read More
AmitDiwan
144 Views
To get the TypeCode for value type UInt32, the code is as follows −Example Live Demousing System; public class Demo { public static void Main() { uint val1 = 55; uint val2 = 100; TypeCode type1 = val1.GetTypeCode(); ... Read More
AmitDiwan
567 Views
To get all the interfaces implemented or inherited by the current Type, the code is as follows −Example Live Demousing System; public class Demo { public static void Main() { Type type = typeof(float); Type myInterface = type.GetInterface("IFormattable", true); Type[] myInterfaces ... Read More