C# 클래스 Helios.Util.Guard

Guard class for protecting against stupid input
파일 보기 프로젝트 열기: helios-io/helios

공개 메소드들

메소드 설명
Against ( this str, char illegalChar, string message = null ) : void
Against ( this str, string illegalSubstr, string message = null ) : void
NotGreaterThan ( this value, int maximumValue ) : void
NotLessThan ( this value, int minimumValue ) : void
NotNegative ( this value ) : void
True ( bool boolean, string errorMessage = "Expression should be true, but was false" ) : void

메소드 상세

Against() 공개 정적인 메소드

public static Against ( this str, char illegalChar, string message = null ) : void
str this
illegalChar char
message string
리턴 void

Against() 공개 정적인 메소드

public static Against ( this str, string illegalSubstr, string message = null ) : void
str this
illegalSubstr string
message string
리턴 void

NotGreaterThan() 공개 정적인 메소드

public static NotGreaterThan ( this value, int maximumValue ) : void
value this
maximumValue int
리턴 void

NotLessThan() 공개 정적인 메소드

public static NotLessThan ( this value, int minimumValue ) : void
value this
minimumValue int
리턴 void

NotNegative() 공개 정적인 메소드

public static NotNegative ( this value ) : void
value this
리턴 void

True() 공개 정적인 메소드

public static True ( bool boolean, string errorMessage = "Expression should be true, but was false" ) : void
boolean bool
errorMessage string
리턴 void