AmitDiwan has Published 10744 Articles

C# Int16 Struct

AmitDiwan

AmitDiwan

Updated on 04-Dec-2019 11:02:25

479 Views

The Int16 Struct represents a 16-bit signed integer with values ranging from negative 32768 through positive 32767.Following are the fields of Int16 −Sr.NoField & Description1MaxValue − Represents the largest possible value of an Int16. This field is constant.2MinValue − Represents the smallest possible value of an Int16. This field is constant.Following are some of ... Read More

Stack.Peek() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Dec-2019 10:46:40

1K+ Views

The Stack.Peek() method in C# is used to return the object at the top of the Stack 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

Stack.IsSynchronized Property in C#

AmitDiwan

AmitDiwan

Updated on 04-Dec-2019 10:32:07

95 Views

The Stack.IsSynchronized property in C# is used to get a value indicating whether access to the Stack 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

Double.Equals() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 04-Dec-2019 10:25:44

340 Views

The Double.Equals() method in C# is used to return a value indicating whether two instances of Double represent the same value.SyntaxThe syntax is as follows −public bool Equals (double obj); public override bool Equals (object ob);The obj parameter of the first syntax is a Double object to compare to this ... Read More

Double.CompareTo Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 04-Dec-2019 10:21:41

2K+ Views

The Double.CompareTo() method in C# is used to compare this instance to a specified object or Double object and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object or Double object.SyntaxThe syntax is as follows −public int CompareTo ... Read More

Boolean.ToString(IFormatProvider) Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Dec-2019 10:18:07

516 Views

The Boolean.ToString() method in C# is used to convert the value of this instance to its equivalent string representation.SyntaxThe syntax is as follows −public string ToString (IFormatProvider provider);Above, the parameter provider is an IFormatProvider object.ExampleLet us now see an example − Live Demousing System; using System.Globalization; public class Demo {   ... Read More

Stack.Count Property in C#

AmitDiwan

AmitDiwan

Updated on 04-Dec-2019 10:12:55

319 Views

The Stack.Count property in C# is used to get the number of elements contained in the Stack.SyntaxThe syntax is as follows −public virtual int Count { get; }ExampleLet us now see an example − Live Demousing System; using System.Collections; public class Demo {    public static void Main() {     ... Read More

Stack.Contains() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Dec-2019 10:07:40

221 Views

The Stack.Contains() method in C# is used to check whether an element is in the Stack or not.SyntaxThe syntax is as follows −public virtual bool Contains (object ob);Above, ob is the object to be searched in the stack.ExampleLet us now see an example − Live Demousing System; using System.Collections; public class ... Read More

TimeSpan.FromMilliseconds() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Dec-2019 10:01:35

586 Views

The TimeSpan.FromMilliseconds() method in C# is used to return a TimeSpan that represents a specified number of milliseconds.The syntax is as follows −Syntaxpublic static TimeSpan FromMilliseconds (double val);Above, val is the number of milliseconds.ExampleLet us now see an example − Live Demousing System; public class Demo {    public static void ... Read More

C# String.IsNormalized Method

AmitDiwan

AmitDiwan

Updated on 04-Dec-2019 09:58:05

192 Views

The String.IsNormalized() method in C# is used to indicate whether this string is in a particular Unicode normalization form.SyntaxThe syntax is as follows −public bool IsNormalized (); public bool IsNormalized (System.Text.NormalizationForm normalizationForm);Above, the parameter normalizationForm is a Unicode normalization form.ExampleLet us now see an example − Live Demousing System; public class ... Read More

Advertisements