C# Class Utilities.Extensions.Boolean

Mostra file Open project: feanz/Utilities

Public Methods

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

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'
return string