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
171 Views
To get the types nested within the current Type, the code is as follows −Example Live Demousing System; public class Demo { public static void Main() { Type type1 = typeof(Subject); try { Type[] type2 = type1.GetNestedTypes(); ... Read More
AmitDiwan
107 Views
To get a specific type nested within the current Type, the code is as follows −Example Live Demousing System; public class Demo { public static void Main() { Type type1 = typeof(Subject); try { Type type2 = type1.GetNestedType("AdvSubject"); ... Read More
AmitDiwan
263 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
169 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
135 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
116 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
356 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
260 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
318 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