AmitDiwan has Published 11365 Articles

DateTime.Equals() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 07:12:51

2K+ Views

The DateTime.Equals() method in C# is used check whether two DateTime objects or instances are equal or not. TRUE is returned if both are equal, else FALSE would be the return value.SyntaxFollowing is the syntax −public static bool Equals (DateTime date1, DateTime date2);ExampleLet us now see an example to implement ... Read More

MathF.Sqrt() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 07:10:34

243 Views

The MathF.Sqrt() method in C# is used to compute the square root of the floating-point value.SyntaxFollowing is the syntax −public static float Sqrt (float val);Above, Val is the number whose square root is to be computed.ExampleLet us now see an example to implement the MathF.Sqrt() method −using System; public class ... Read More

MathF.Sinh() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 07:05:19

62 Views

The MathF.Sinh() method in C# returns the hyperbolic sine of a floating-point argument.SyntaxFollowing is the syntax −public static float Sinh (float val);Above, Val is the number whose hyperbolic sine is to be returned.ExampleLet us now see an example to implement the MathF.Sinh() method −using System; public class Demo {   ... Read More

MathF.Sin() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 07:02:22

106 Views

The MathF.Sin() method in C# is used to return the sine of a given float value argument.SyntaxFollowing is the syntax −public static float Sin (float val);Above, Val is the angle whose sine is to be returned.ExampleLet us now see an example to implement the MathF.Sin() method −using System; public class ... Read More

DateTime.CompareTo() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 07:00:02

797 Views

The DateTime.CompareTo() method in C# is used to compare the value of this instance to a specified DateTime value.SyntaxFollowing is the syntax −public int CompareTo (DateTime val);Above, Val is the date to be compared.It returns an integer value, 0 − If this instance is later than ValExampleLet us now see ... Read More

Type.GetInterfaces() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 06:57:26

93 Views

The Type.GetInterfaces() method in C# is used to get all the interfaces implemented or inherited by the current Type.SyntaxFollowing is the syntax −public abstract Type[] GetInterfaces ();ExampleLet us now see an example to implement the Type.GetInterfaces() method −using System; public class Demo {    public static void Main(){     ... Read More

Type.GetInterface() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 06:54:54

166 Views

The Type.GetInterface() method in C# is used to get a specific interface implemented or inherited by the current Type.SyntaxFollowing is the syntax −public Type GetInterface (string name); public abstract Type GetInterface (string name, bool ignoreCase);ExampleLet us now see an example to implement the Type.GetInterface() method −using System; public class Demo ... Read More

UInt64.GetTypeCode() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 06:53:06

59 Views

The UInt64.GetTypeCode() method in C# is used to return the TypeCode for value type UInt64.SyntaxFollowing is the syntax −public TypeCode GetTypeCode ();ExampleLet us now see an example to implement the UInt64.GetTypeCode() method −using System; public class Demo {    public static void Main(){       ulong val1 = 55; ... Read More

UInt64.GetHashCode() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 06:50:59

66 Views

The UInt64.GetHashCode() method in C# is used to get the HashCode for the current UInt64 instance.SyntaxFollowing is the syntax −public override int GetHashCode ();ExampleLet us now see an example to implement the UInt64.GetHashCode() method −using System; public class Demo {    public static void Main(){       ulong val1 ... Read More

UInt64.Equals Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 06:49:12

56 Views

The UInt64.Equals() method in C# returns a value indicating whether this instance is equal to a specified object or UInt64.SyntaxFollowing is the syntax −public override bool Equals (object ob); public bool Equals (ulong ob);Above, the parameter ob for the 1st syntax is an object to compare to this instance and ... Read More

Advertisements