C# Класс Qowaiv.PercentageExtensions

Contains extensions for Percentage.
Показать файл Открыть проект

Открытые методы

Метод Описание
Add ( this d, Percentage p ) : Decimal

Adds the specified percentage to the Decimal.

Add ( this d, Percentage p ) : Double

Adds the specified percentage to the Double.

Add ( this d, Percentage p ) : Int16

Adds the specified percentage to the Int64.

Add ( this d, Percentage p ) : Int32

Adds the specified percentage to the Int32.

Add ( this d, Percentage p ) : System.Int64

Adds the specified percentage to the Int16.

Add ( this d, Percentage p ) : System.Single

Adds the specified percentage to the Single.

Divide ( this d, Percentage p ) : Decimal

Divides the Decimal by the specified percentage.

Divide ( this d, Percentage p ) : Double

Divides the Double by the specified percentage.

Divide ( this d, Percentage p ) : Int16

Divides the Int16 by the specified percentage.

Divide ( this d, Percentage p ) : Int32

Divides the Int32 by the specified percentage.

Divide ( this d, Percentage p ) : System.Int64

Divides the Int64 by the specified percentage.

Divide ( this d, Percentage p ) : System.Single

Divides the Single by the specified percentage.

Multiply ( this d, Percentage p ) : Decimal

Gets the specified percentage of the Decimal.

Multiply ( this d, Percentage p ) : Double

Gets the specified percentage of the Double.

Multiply ( this d, Percentage p ) : Int16

Gets the specified percentage of the Int16.

Multiply ( this d, Percentage p ) : Int32

Gets the specified percentage of the Int32.

Multiply ( this d, Percentage p ) : System.Int64

Gets the specified percentage of the Int64.

Multiply ( this d, Percentage p ) : System.Single

Gets the specified percentage of the Single.

Subtract ( this d, Percentage p ) : Decimal

Subtracts the specified percentage to the Decimal.

Subtract ( this d, Percentage p ) : Double

Subtracts the specified percentage to the Double.

Subtract ( this d, Percentage p ) : Int16

Subtracts the specified percentage to the Int64.

Subtract ( this d, Percentage p ) : Int32

Subtracts the specified percentage to the Int32.

Subtract ( this d, Percentage p ) : System.Int64

Subtracts the specified percentage to the Int16.

Subtract ( this d, Percentage p ) : System.Single

Subtracts the specified percentage to the Single.

Приватные методы

Метод Описание
Add ( this d, Percentage p ) : UInt16
Add ( this d, Percentage p ) : UInt32
Add ( this d, Percentage p ) : System.UInt64
Divide ( this d, Percentage p ) : UInt16
Divide ( this d, Percentage p ) : UInt32
Divide ( this d, Percentage p ) : System.UInt64
Multiply ( this d, Percentage p ) : UInt16
Multiply ( this d, Percentage p ) : UInt32
Multiply ( this d, Percentage p ) : System.UInt64
Subtract ( this d, Percentage p ) : UInt16
Subtract ( this d, Percentage p ) : UInt32
Subtract ( this d, Percentage p ) : System.UInt64

Описание методов

Add() публичный статический Метод

Adds the specified percentage to the Decimal.
public static Add ( this d, Percentage p ) : Decimal
d this /// The value to add a percentage to. ///
p Percentage /// The percentage to add. ///
Результат Decimal

Add() публичный статический Метод

Adds the specified percentage to the Double.
public static Add ( this d, Percentage p ) : Double
d this /// The value to add a percentage to. ///
p Percentage /// The percentage to add. ///
Результат Double

Add() публичный статический Метод

Adds the specified percentage to the Int64.
public static Add ( this d, Percentage p ) : Int16
d this /// The value to add a percentage to. ///
p Percentage /// The percentage to add. ///
Результат System.Int16

Add() публичный статический Метод

Adds the specified percentage to the Int32.
public static Add ( this d, Percentage p ) : Int32
d this /// The value to add a percentage to. ///
p Percentage /// The percentage to add. ///
Результат System.Int32

Add() публичный статический Метод

Adds the specified percentage to the Int16.
public static Add ( this d, Percentage p ) : System.Int64
d this /// The value to add a percentage to. ///
p Percentage /// The percentage to add. ///
Результат System.Int64

Add() публичный статический Метод

Adds the specified percentage to the Single.
public static Add ( this d, Percentage p ) : System.Single
d this /// The value to add a percentage to. ///
p Percentage /// The percentage to add. ///
Результат System.Single

Divide() публичный статический Метод

Divides the Decimal by the specified percentage.
public static Divide ( this d, Percentage p ) : Decimal
d this /// The value to divide. ///
p Percentage /// The percentage to divide to. ///
Результат Decimal

Divide() публичный статический Метод

Divides the Double by the specified percentage.
public static Divide ( this d, Percentage p ) : Double
d this /// The value to divide. ///
p Percentage /// The percentage to divide to. ///
Результат Double

Divide() публичный статический Метод

Divides the Int16 by the specified percentage.
public static Divide ( this d, Percentage p ) : Int16
d this /// The value to divide. ///
p Percentage /// The percentage to divide to. ///
Результат System.Int16

Divide() публичный статический Метод

Divides the Int32 by the specified percentage.
public static Divide ( this d, Percentage p ) : Int32
d this /// The value to divide. ///
p Percentage /// The percentage to divide to. ///
Результат System.Int32

Divide() публичный статический Метод

Divides the Int64 by the specified percentage.
public static Divide ( this d, Percentage p ) : System.Int64
d this /// The value to divide. ///
p Percentage /// The percentage to divide to. ///
Результат System.Int64

Divide() публичный статический Метод

Divides the Single by the specified percentage.
public static Divide ( this d, Percentage p ) : System.Single
d this /// The value to divide. ///
p Percentage /// The percentage to divide to. ///
Результат System.Single

Multiply() публичный статический Метод

Gets the specified percentage of the Decimal.
public static Multiply ( this d, Percentage p ) : Decimal
d this /// The value to get a percentage from. ///
p Percentage /// The percentage. ///
Результат Decimal

Multiply() публичный статический Метод

Gets the specified percentage of the Double.
public static Multiply ( this d, Percentage p ) : Double
d this /// The value to get a percentage from. ///
p Percentage /// The percentage. ///
Результат Double

Multiply() публичный статический Метод

Gets the specified percentage of the Int16.
public static Multiply ( this d, Percentage p ) : Int16
d this /// The value to get a percentage from. ///
p Percentage /// The percentage. ///
Результат System.Int16

Multiply() публичный статический Метод

Gets the specified percentage of the Int32.
public static Multiply ( this d, Percentage p ) : Int32
d this /// The value to get a percentage from. ///
p Percentage /// The percentage. ///
Результат System.Int32

Multiply() публичный статический Метод

Gets the specified percentage of the Int64.
public static Multiply ( this d, Percentage p ) : System.Int64
d this /// The value to get a percentage from. ///
p Percentage /// The percentage. ///
Результат System.Int64

Multiply() публичный статический Метод

Gets the specified percentage of the Single.
public static Multiply ( this d, Percentage p ) : System.Single
d this /// The value to get a percentage from. ///
p Percentage /// The percentage. ///
Результат System.Single

Subtract() публичный статический Метод

Subtracts the specified percentage to the Decimal.
public static Subtract ( this d, Percentage p ) : Decimal
d this /// The value to Subtract a percentage from. ///
p Percentage /// The percentage to Subtract. ///
Результат Decimal

Subtract() публичный статический Метод

Subtracts the specified percentage to the Double.
public static Subtract ( this d, Percentage p ) : Double
d this /// The value to Subtract a percentage from. ///
p Percentage /// The percentage to Subtract. ///
Результат Double

Subtract() публичный статический Метод

Subtracts the specified percentage to the Int64.
public static Subtract ( this d, Percentage p ) : Int16
d this /// The value to Subtract a percentage from. ///
p Percentage /// The percentage to Subtract. ///
Результат System.Int16

Subtract() публичный статический Метод

Subtracts the specified percentage to the Int32.
public static Subtract ( this d, Percentage p ) : Int32
d this /// The value to Subtract a percentage from. ///
p Percentage /// The percentage to Subtract. ///
Результат System.Int32

Subtract() публичный статический Метод

Subtracts the specified percentage to the Int16.
public static Subtract ( this d, Percentage p ) : System.Int64
d this /// The value to Subtract a percentage from. ///
p Percentage /// The percentage to Subtract. ///
Результат System.Int64

Subtract() публичный статический Метод

Subtracts the specified percentage to the Single.
public static Subtract ( this d, Percentage p ) : System.Single
d this /// The value to Subtract a percentage from. ///
p Percentage /// The percentage to Subtract. ///
Результат System.Single