Skip to content

Tag Archives: CSharp-method

Methods in C# programming language

This method is used to convert the value of the specified Decimal to the equivalent 32-bit signed integer. A user can also convert a Decimal… Read More
This method is used to add two specified decimal values. Syntax: public static decimal Add (decimal a1, decimal a2); Parameters: a1: This parameter specifies the… Read More
This method is used to round the decimal to the closest integer toward negative infinity. Syntax: public static decimal Floor (decimal d); Parameter: d: This… Read More
This method is used to converts the value of this instance to a String. A new String object is created and initialized to get the… Read More
This method is used to multiply two specified decimal values. Syntax: public static decimal Multiply (decimal a1, decimal a2);Parameters: a1: This parameter specifies the multiplicand. a2: This… Read More
Given a normal Console in C#, the task is to play Beep sound through the Console. Approach: This can be achieved with the help of… Read More
This method is used to round the decimal to the closest integer toward positive infinity. Syntax: public static decimal Ceiling (decimal d); Here d is… Read More
Given a normal Console in C#, the task is to play a user modified Beep sound through the Console. User modified beep sound refers to… Read More
This method is used to clear the console buffer and corresponding console window of display information. Syntax: public static void Clear (); Exceptions: This method… Read More
This method is used to compare two specified Decimal values. Syntax: public static int Compare (decimal a1, decimal a2); Parameters: a1:This parameter specifies the first… Read More
Queue<T>.GetEnumerator Method is used to get an enumerator which can iterate through the Queue. And it comes under the System.Collections.Generic namespace. Syntax: public System.Collections.Generic.Queue<T>.Enumerator GetEnumerator… Read More
Equals(Object) Method which is inherited from the Object class is used to check if a specified Stack class object is equal to another Stack class… Read More
DateTime.FromOADate(Double) Method is used to return a DateTime equivalent to the specified OLE Automation Date. Syntax: public static DateTime FromOADate (double d); Here, it takes… Read More
Queue<T>.CopyTo(T[], Int32) Method is used to copy the Queue elements to an existing one-dimensional Array, starting at the specified array index. The elements are copied… Read More
DateTime.FromFileTimeUtc(Int64) Method is used to convert the specified Windows file time to an equivalent UTC time.  Syntax: public static DateTime FromFileTimeUtc (long fileTime); Here, it takes… Read More

Start Your Coding Journey Now!