C# 클래스 Ensure.EnsureStringExtensions

파일 보기 프로젝트 열기: afnpires/Ensure

공개 메소드들

메소드 설명
EnsureNotNullOrEmpty ( string value, string name = null ) : void

Throws a ArgumentNullException if value is null or empty.

EnsureNotNullOrWhitespace ( string value, string name = null ) : void

Throws a ArgumentNullException if value is null, empty, or whitespace.

메소드 상세

EnsureNotNullOrEmpty() 공개 정적인 메소드

Throws a ArgumentNullException if value is null or empty.
/// Throws when is null or empty. ///
public static EnsureNotNullOrEmpty ( string value, string name = null ) : void
value string /// The value to be verified. ///
name string /// The name that will be passed as argument of the being thrown. ///
리턴 void

EnsureNotNullOrWhitespace() 공개 정적인 메소드

Throws a ArgumentNullException if value is null, empty, or whitespace.
/// Throws when is null, empty or whitespace. ///
public static EnsureNotNullOrWhitespace ( string value, string name = null ) : void
value string /// The value to be verified. ///
name string /// The name that will be passed as argument of the being thrown. ///
리턴 void