AmitDiwan has Published 11365 Articles

Boolean.ToString() Method in C#

AmitDiwan

AmitDiwan

Updated on 11-Nov-2019 07:28:13

7K+ Views

The Boolean.ToString() method in C# converts the value of this instance to its equivalent string representation (either "True" or "False").SyntaxFollowing is the syntax −public override string ToString ();ExampleLet us now see an example to implement the Boolean.ToString() method −using System; public class Demo {    public static void Main(){   ... Read More

Boolean.Equals(Object) Method in C#

AmitDiwan

AmitDiwan

Updated on 11-Nov-2019 07:25:22

96 Views

The Boolean.Equals(Object) method in C# returns a value indicating whether this instance is equal to a specified object.SyntaxFollowing is the syntax −public override bool Equals (object ob);Above, ob is an object to compare to this instance.ExampleLet us now see an example to implement the Boolean.Equals(Object) method −using System; public class ... Read More

Boolean.Equals(Boolean) Method in C#

AmitDiwan

AmitDiwan

Updated on 11-Nov-2019 07:23:45

384 Views

The Boolean.Equals(Boolean) method in C# returns a value indicating whether this instance is equal to a specified Boolean object.SyntaxFollowing is the syntax −public bool Equals (bool ob);Above, ob is a Boolean value to compare to this instance.ExampleLet us now see an example to implement the Boolean.Equals(Boolean) method −using System; public ... Read More

DateTimeOffset.AddMilliseconds() Method in C#

AmitDiwan

AmitDiwan

Updated on 11-Nov-2019 07:21:58

51 Views

The DateTimeOffset.AddMilliseconds() method in C# is used to return a new DateTimeOffset object that adds a specified number of milliseconds to the value of this instance.SyntaxFollowing is the syntax −public DateTimeOffset AddMilliseconds (double val);Above, Val are the milliseconds to be added. To subtract, set a negative value.ExampleLet us now see ... Read More

DateTimeOffset.AddHours() Method in C#

AmitDiwan

AmitDiwan

Updated on 11-Nov-2019 07:13:13

186 Views

The DateTimeOffset.AddHours() method in C# is used to add a specified number of whole and fractional hours to the value of this instance.SyntaxFollowing is the syntax −public DateTimeOffset AddHours (double hrs);Above, hrs are the hours to be added. To subtract hours, include a negative value.ExampleLet us now see an example ... Read More

DateTimeOffset.AddDays() Method in C#

AmitDiwan

AmitDiwan

Updated on 11-Nov-2019 07:10:43

369 Views

The DateTimeOffset.AddDays() method in C# is used to return a new DateTimeOffset object that adds a specified number of whole and fractional days to the value of this instance.SyntaxFollowing is the syntax −public DateTimeOffset AddDays (double val);Above, Val is the number of days to be added. To subtract, include a ... Read More

DateTimeOffset.Add() Method in C#

AmitDiwan

AmitDiwan

Updated on 11-Nov-2019 07:08:22

60 Views

The DateTimeOffset.Add() method in C# is used to return a new DateTimeOffset object that adds a specified time interval to the value of this instance.SyntaxFollowing is the syntax −public DateTimeOffset Add (TimeSpan t);ExampleLet us now see an example to implement the DateTimeOffset.Add() method −using System; public class Demo {   ... Read More

Type.GetNestedTypes() Method in C#

AmitDiwan

AmitDiwan

Updated on 11-Nov-2019 07:05:45

61 Views

The Type.GetNestedTypes() method in C# is used to get the types nested within the current Type.SyntaxFollowing is the syntax −public Type[] GetNestedTypes (); public abstract Type[] GetNestedTypes (System.Reflection.BindingFlags bindingAttr);ExampleLet us now see an example to implement the Type.GetNestedTypes() method −using System; public class Demo {    public static void Main(){ ... Read More

Type.GetNestedType() Method in C#

AmitDiwan

AmitDiwan

Updated on 11-Nov-2019 07:00:36

73 Views

The Type.GetNestedType() method in C# is used to get a specific type of nested within the current Type.SyntaxFollowing is the syntax −public Type GetNestedType (string name); public abstract Type GetNestedType (string name, System.Reflection.BindingFlags bindingAttr);ExampleLet us now see an example to implement the Type.GetNestedType() method −using System; public class Demo { ... Read More

Decimal.FromOACurrency() Method in C#

AmitDiwan

AmitDiwan

Updated on 11-Nov-2019 06:58:19

28 Views

The Decimal.FromOACurrency() method in C# is used to convert the specified 64-bit signed integer, which contains an OLE Automation Currency value, to the equivalent Decimal valueSyntaxFollowing is the syntax −public static decimal FromOACurrency (long val);Above, Val is an OLE Automation Currency value.ExampleLet us now see an example to implement the ... Read More

Advertisements