C# 클래스 Utilities.Extensions.Boolean

파일 보기 프로젝트 열기: feanz/Utilities

공개 메소드들

메소드 설명
YesNo ( this flag, string trueValue = "Yes", string falseValue = "No" ) : string

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

메소드 상세

YesNo() 공개 정적인 메소드

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'
리턴 string