
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
727 Views
The Stack.Push() method in C# is used to insert an object at the top of the Stack.SyntaxThe syntax is as follows −public virtual void Push (object ob);Above, the parameter ob is the object to push onto the stack.ExampleLet us now see an example − Live Demousing System; using System.Collections; public class ... Read More

AmitDiwan
92 Views
The Single.IsNegative() method in C# returns a value indicating whether the specified number evaluates to negative infinity.SyntaxThe syntax is as follows −public static bool IsNegativeInfinity (float val);Above, the parameter val is a single-precision floating-point number.ExampleLet us now see an example − Live Demousing System; public class Demo { public static ... Read More

AmitDiwan
79 Views
The SByte.CompareTo() method in C# is used to compare this instance to a specified object or SByte and returns an indication of their relative values.SyntaxThe syntax is as follows −public int CompareTo (sbyte val); public int CompareTo (object ob);Above, the parameter val is an 8-bit signed integer to compare, whereas ... Read More

AmitDiwan
1K+ Views
The Stack.ToString() method in C# is used to get the string representation of the Stack class object.SyntaxThe syntax is as follows −public string ToString ();ExampleLet us now see an example − Live Demousing System; using System.Collections; public class Demo { public static void Main() { Stack stack ... Read More

AmitDiwan
300 Views
The Stack.ToArray() method in C# is used to copy the Stack to a new array.SyntaxThe syntax is as follows −public virtual object[] ToArray ();ExampleLet us now see an example − Live Demousing System; using System.Collections; public class Demo { public static void Main() { Stack stack = ... Read More

AmitDiwan
105 Views
The Stack.Synchronized() method in C# is used to returns a synchronized (thread safe) wrapper for the Stack.SyntaxThe syntax is as follows −public static System.Collections.Stack Synchronized (System.Collections.Stack stack);Above, the parameter stack is the stack to synchronize.ExampleLet us now see an example − Live Demousing System; using System.Collections; public class Demo { ... Read More

AmitDiwan
178 Views
The Single.IsNan() method in C# is used to return a value that indicates whether the specified value is not a number (NaN).SyntaxThe syntax is as follows −public static bool IsNaN (float f);Above, the parameter val is a single-precision floating-point number.ExampleLet us now see an example − Live Demousing System; public class ... Read More

AmitDiwan
253 Views
The Stack.Clear() method in C# is used to removes all objects from the Stack.SyntaxThe syntax is as follows −public virtual void Clear ();ExampleLet us now see an example − Live Demousing System; using System.Collections; public class Demo { public static void Main() { Stack stack = new ... Read More

AmitDiwan
403 Views
The Queue.Peek() method in C# is used to return the object at the beginning of the Queue without removing it.SyntaxThe syntax is as follows −public virtual object Peek ();ExampleLet us now see an example − Live Demousing System; using System.Collections; public class Demo { public static void Main() { ... Read More

AmitDiwan
93 Views
The Queue.IsSynchronized() method in C# is used to GET a value indicating whether access to the Queue is synchronized (thread safe).SyntaxThe syntax is as follows −public virtual bool IsSynchronized { get; }ExampleLet us now see an example − Live Demousing System; using System.Collections; public class Demo { public static void ... Read More