# Category Archives: C#

## C# | Math.Truncate() Method

In C#, Math.Truncate() is a math class method which is used to compute an integral part of a specified decimal number or double-precision floating-point number.… Read More »

## C# | Math.Max() Method

In C#, Max() is a Math class method which is used to returns the larger of the two specified numbers. This method always takes two… Read More »

## C# | Math.Sign() Method

In C#, Sign() is a math class method which returns an integer that specify the sign of the number. This method can be overloaded by… Read More »

## C# | Math.Min() Method

In C#, Min() is a Math class method which returns the smaller of the two specified numbers. This method always takes two arguments and it… Read More »

## C# | Math.Sqrt() Method

In C#, Math.Sqrt() is a Math class method which is used to calculate the square root of the specified number. Sqrt is a slower computation.… Read More »

## C# | Math Class Fields with Examples

In C#, Math class provides the constants and the static methods for logarithmic, trigonometric, and other mathematical functions. Math class has two fields as follows:… Read More »

## C# | Inheritance

Inheritance is an important pillar of OOP(Object Oriented Programming). It is the mechanism in C# by which one class is allowed to inherit the features(fields… Read More »

## C# | Math.Cosh() Method

Math.Cosh() is the inbuilt Math class method which returns the hyperbolic cosine of a given double value argument. Syntax: public static double Cosh(double num) Parameters:… Read More »

## C# | Join Method | Set – 2

In C#, Join() is a string method. This method is used to concatenates the members of a collection or the elements of the specified array,… Read More »

## C# | Swap two Strings without using third user defined variable

Given two string variables a and b, swap these variables without using a temporary or third variable in C#. Use of library methods is allowed.… Read More »

## C# | Math.Sinh() Method

Math.Sinh() is the inbuilt Math class method which returns the hyperbolic sine of a given double value argument(specified angle). Syntax: public static double Sinh(double num)… Read More »

## C# | Math.Ceiling() Method

In C#, Math.Ceiling() is a Math class method. This method is used to find the smallest integer , which is greater than or equal to… Read More »

## C# | Math.Tanh() Method

Math.Tanh() is the inbuilt Math class method which returns the hyperbolic tan of a given double value argument. The result will be NaN if the… Read More »

## C# | Sealed Class

Sealed classes are used to restrict the users from inheriting the class. A class can be sealed by using the sealed keyword. The keyword tells… Read More »

## C# | Math.Floor() Method

In C#, Math.Floor() is a Math class method. This method is used to find the largest integer, which is less than or equal to the… Read More »