C# Class Qowaiv.PercentageExtensions

Contains extensions for Percentage.
Show file Open project: Corniel/Qowaiv

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

Add() public static method

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. ///
return Decimal

Add() public static method

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. ///
return Double

Add() public static method

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. ///
return System.Int16

Add() public static method

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. ///
return System.Int32

Add() public static method

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. ///
return System.Int64

Add() public static method

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. ///
return System.Single

Divide() public static method

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. ///
return Decimal

Divide() public static method

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. ///
return Double

Divide() public static method

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. ///
return System.Int16

Divide() public static method

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. ///
return System.Int32

Divide() public static method

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. ///
return System.Int64

Divide() public static method

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. ///
return System.Single

Multiply() public static method

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. ///
return Decimal

Multiply() public static method

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. ///
return Double

Multiply() public static method

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. ///
return System.Int16

Multiply() public static method

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. ///
return System.Int32

Multiply() public static method

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. ///
return System.Int64

Multiply() public static method

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. ///
return System.Single

Subtract() public static method

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. ///
return Decimal

Subtract() public static method

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. ///
return Double

Subtract() public static method

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. ///
return System.Int16

Subtract() public static method

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. ///
return System.Int32

Subtract() public static method

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. ///
return System.Int64

Subtract() public static method

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. ///
return System.Single