AmitDiwan has Published 10744 Articles

DateTime.FromFileTimeUtc() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 07:20:43

192 Views

The DateTime.FromFileTimeUtc() method in C# converts the specified Windows file time to an equivalent UTC time.SyntaxFollowing is the syntax −public static DateTime FromFileTimeUtc (long time);Here, the parameter time is the Windows file time expressed in ticks (expressed in 100-nanosecond ticks.)ExampleLet us now see an example to implement the DateTime.FromFileTimeUtc() method ... Read More

DateTime.FromFileTime() Method in C#

AmitDiwan

AmitDiwan

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

157 Views

The DateTime.FromFileTime() method in C# is used to convert the specified Windows file time to an equivalent local time.SyntaxFollowing is the syntax −public static DateTime FromFileTime (long fileTime);Above, the parameter lifetime is a Windows file time expressed in ticks.ExampleLet us now see an example to implement the DateTime.FromFileTime() method −using ... Read More

DateTime.FromBinary() Method in C#

AmitDiwan

AmitDiwan

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

249 Views

The DateTime.FromBinary() method in C# is used to deserialize a 64-bit binary value and recreates an original serialized DateTime object.SyntaxFollowing is the syntax −public static DateTime FromBinary (long val);Above, Val is a 64-bit signed integer that encodes the Kind property in a 2-bit field and the Ticks property in a ... Read More

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

300 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

118 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

158 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

947 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

191 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

233 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

Advertisements