C# Class Gringotts.Domain.Percentage

Afficher le fichier Open project: bagheera/Gringotts Class Usage Examples

Méthodes publiques

Méthode Description
Apply ( Amount amount ) : Amount
ApplyRemaining ( Amount amount ) : Amount
Equals ( Percentage other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
Percentage ( float ratio ) : System
operator ( ) : bool

Private Methods

Méthode Description
IsValid ( float ratio ) : bool

Method Details

Apply() public méthode

public Apply ( Amount amount ) : Amount
amount Amount
Résultat Amount

ApplyRemaining() public méthode

public ApplyRemaining ( Amount amount ) : Amount
amount Amount
Résultat Amount

Equals() public méthode

public Equals ( Percentage other ) : bool
other Percentage
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Percentage() public méthode

public Percentage ( float ratio ) : System
ratio float
Résultat System

operator() public static méthode

public static operator ( ) : bool
Résultat bool