C# Класс Ensure.EnsureStringExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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