AmitDiwan has Published 10740 Articles

Math.IEEERemainder() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 10:40:18

86 Views

The Math.IEEERemainder() method in C# is used to return the remainder resulting from the division of a specified number by another specified number.Syntaxpublic static double IEEERemainder (double dividend, double divisor);Let us now see an example to implement Math.IEEERemainder() method −Exampleusing System; public class Demo {    public static void Main(){ ... Read More

Type.GetDefaultMembers() Method in C#

AmitDiwan

AmitDiwan

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

101 Views

The Type.GetDefaultMembers() method in C# is used to search for the members defined for the current Type whose DefaultMemberAttribute is set.Syntaxpublic virtual System.Reflection.MemberInfo[] GetDefaultMembers ();Let us now see an example to implement the Type.GetDefaultMembers() method −Exampleusing System; using System.Reflection; [DefaultMemberAttribute("subject")] public class Demo {    public static void Main(){   ... Read More

Type.GetArrayRank() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 10:35:11

120 Views

The Type.GetArrayRank() method in C# gets the number of dimensions in an array.Syntaxpublic virtual int GetArrayRank ();Let us now see an example to implement the Type.GetArrayRank() method −Exampleusing System; public class Demo {    public static void Main(string[] args) {       Type type = typeof(int[, , ]);   ... Read More

Type.Equals() Method in C#

AmitDiwan

AmitDiwan

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

908 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

152 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

Tuple Class in C#

AmitDiwan

AmitDiwan

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

162 Views

The Tuple class represents a 6-tuple. A tuple is a data structure that has 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 values to a methodIt has ... Read More

Tuple Class in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 10:14:47

214 Views

The Tuple class represents a 5-tuple, which is called quintuple. 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

302 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

Math.DivRem() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 10:03:47

2K+ Views

The Math.DivRem() method in C# is used to divide and calculate the quotient of two numbers and also returns the remainder in an output parameter.Syntaxpublic static int DivRem (int dividend, int divisor, out int remainder); public static long DivRem (long dividend, long divisor, long remainder);Let us now see an example ... Read More

Advertisements