AmitDiwan has Published 11365 Articles

Math.Acos() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:54:36

281 Views

The Math.Acos() method in C# returns the angle whose cosine is the specified number. This number is a double value argument. SyntaxThe syntax is as follows −public static double Acos (double val);Above, Val is the number representing a cosine, where Val must be greater than or equal to -1, but less ... Read More

Math.Abs() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:51:04

15K+ Views

The Math.Abs() method in C# is used to return the absolute value of a specified number in C#. This specified number can be decimal, double, 16-bit signed integer, etc.ExampleLet us now see an example to implement the Math.abs() method to return the absolute value of double number −using System; class ... Read More

Dictionary.Values Property in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:49:15

207 Views

The Dictionary.Values property in C# is used to fetch all the values in the Dictionary.SyntaxFollowing is the syntax −public System.Collections.Generic.Dictionary.KeyCollection Values{ get; }ExampleLet us now see an example to implement the Dictionary.Values property −using System; using System.Collections.Generic; public class Demo {    public static void Main(){       Dictionary ... Read More

Dictionary Class in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:45:31

573 Views

Dictionary in C# is a collection of keys and values. It is a generic collection class in the System.Collection.Generics namespace.SyntaxFollowing is the syntax −public class DictionaryAbove, the key parameter is the type of keys in the dictionary, whereas TValue is the type of values.ExampleLet us now create a Dictionary and ... Read More

Convert.ToSByte(String, IFormatProvider) Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:41:58

111 Views

The Convert.ToSByte() method in C# converts the specified string representation of a number to an equivalent 8-bit signed integer, using the specified culture-specific formatting information.SyntaxFollowing is the syntax −public static sbyte ToSByte (string val, IFormatProvider provider);Above, the parameter value is a string that contains the number to convert. A provider ... Read More

Convert.ToDouble(String, IFormatProvider) Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:39:32

2K+ Views

The Convert.ToDouble() method in C# converts the specified string representation of a number to an equivalent double-precision floating-point number, using the specified culture-specific formatting information.SyntaxFollowing is the syntax −public static double ToDouble (string val, IFormatProvider provider);Above, the value value is a string that contains the number to convert, whereas the ... Read More

DateTime.AddHours() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:37:24

6K+ Views

The DateTime.AddHours() method in C# is used to add the specified number of hours to the value of this instance. This method returns a new DateTime.SyntaxFollowing is the syntax −public DateTime AddHours (double hrs);Above, hrs are the number of hours to be added. The value can be negative to subtract ... Read More

DateTime.AddDays() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:33:59

9K+ Views

The DateTime.AddDays() method in C# is used to add the specified number of days to the value of this instance. This method returns a new DateTime.SyntaxFollowing is the syntax −public DateTime AddDays (double days);Above, the parameter days are the number of days to be added. To subtract, add a negative ... Read More

DateTime.Add() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:30:03

3K+ Views

The DateTime.Add() method in C# is used to return a new DateTime that adds the value of the specified TimeSpan to the value of this instance.SyntaxFollowing is the syntax −public DateTime Add (TimeSpan val);Above, Val is the positive or negative time interval.ExampleLet us now see an example to implement the ... Read More

jQuery :submit Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 12:46:34

247 Views

The :submit selector in jQuery is used to select button and input elements with type submit.SyntaxThe syntax is as follows −$(":submit")ExampleLet us now see an example to implement the jQuery :submit selector −    .one {       background-color: green;       color: white;   ... Read More

Advertisements