C# Class Utilities.Extensions.Boolean

Afficher le fichier Open project: feanz/Utilities

Méthodes publiques

Méthode Description
YesNo ( this flag, string trueValue = "Yes", string falseValue = "No" ) : string

Returns a yes/no string based on the specified Boolean flag

Method Details

YesNo() public static méthode

Returns a yes/no string based on the specified Boolean flag
public static YesNo ( this flag, string trueValue = "Yes", string falseValue = "No" ) : string
flag this Boolean to check.
trueValue string The true string value. Defaults to 'Yes'
falseValue string The false string value. Defaults to 'No'
Résultat string