AmitDiwan has Published 8358 Articles

Type.Equals() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 10:31:27

921 Views

The Type.Equals() method in C# determines if the underlying system type of the current Type is the same as the underlying system type of the specified Object or Type.Syntaxpublic virtual bool Equals (Type o); public override bool Equals (object o);Above, the parameters are the object whose underlying system type is ... Read More

Tuple Class in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 10:29:26

158 Views

The Tuple class represents a 7-tuple, which is called septet. A tuple is a data structure that has a sequence of elements.It is used in −Easier access to a data set.Easier manipulation of a data set.To represent a single set of data.To return multiple values from a methodTo pass multiple ... Read More

Math.Floor() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 10:08:50

3K+ Views

The Math.Floor() method in C# is used to return the largest integral value less than or equal to the specified number.Syntaxpublic static decimal Floor (decimal val); public static double Floor (double val)For the first syntax above, the value val is the decimal number, whereas Val in the second syntax is ... Read More

Math.Exp() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 10:06:36

328 Views

The Math.Exp() method in C# is used to return e raised to the specified power.Syntaxpublic static double Exp (double val);Here, Val is the power.If Val equals NaN or PositiveInfinity, that value is returned. However, if d equals NegativeInfinity, 0 is returned.Let us now see an example to implement Math.Exp() method ... Read More

Char.IsWhiteSpace() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 09:59:10

545 Views

The Char.IsWhiteSpace() method in C# is used to indicate whether the specified Unicode character is white space.Syntaxpublic static bool IsWhiteSpace (char ch);Above, the parameter ch is the Unicode character to evaluate.Let us now see an example to implement the Char.IsWhiteSpace() method −Exampleusing System; public class Demo {    public static ... Read More

Dictionary.Clear Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 09:57:21

3K+ Views

The Dictionary.Clear() method in C# removes all key/value pairs from the Dictionary.Syntaxpublic void Clear();Let us now see an example to implement the Dictionary.Clear() method −Exampleusing System; using System.Collections.Generic; public class Demo {    public static void Main(){       Dictionary dict =       new Dictionary();     ... Read More

CharEnumerator.Dispose() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 09:53:38

149 Views

The CharEnumerator.Dispose() method in C# is used to release all resources used by the current instance of the CharEnumerator class.Syntaxpublic void Dispose ();Let us now see an example to implement the CharEnumerator.Dispose() method −Exampleusing System; public class Demo {    public static void Main(){       string strNum = ... Read More

CharEnumerator.Clone() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 09:51:58

131 Views

The CharEnumerator.Clone() method in C# is used to create a copy of the current CharEnumerator object.Syntaxpublic object Clone();Let us now see an example to implement the CharEnumerator.Clone() method −Exampleusing System; public class Demo {    public static void Main(){       string strNum = "356";       CharEnumerator ... Read More

Char.IsUpper() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 08:14:09

2K+ Views

The Char.IsUpper() method in C# indicates whether the specified Unicode character is categorized as an uppercase letter.Syntaxpublic static bool IsUpper (char ch);Above, the parameter ch is the Unicode character to evaluate.Let us now see an example to implement the Char.IsUpper() method −Exampleusing System; public class Demo {    public static ... Read More

Char.IsSymbol() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 08:10:17

654 Views

The Char.IsSymbol() method in C# is indicating whether the character at the specified position in a specified string is categorized as a symbol character.Syntaxpublic static bool IsSymbol (string str, int index);Above, str is a string, whereas the position of the character to evaluate in str.Let us now see an example ... Read More

Advertisements