Class StringIsNullOrEmptyToBooleanConverter
Converts a string to a boolean depending whether the string is null or empty
Inheritance
StringIsNullOrEmptyToBooleanConverter
Implements
Namespace: Sartorius.SAF.Presentation.Converter
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class StringIsNullOrEmptyToBooleanConverter : NullOrEmptyConverter<string, bool>, IValueConverter
Constructors
View SourceStringIsNullOrEmptyToBooleanConverter()
Initializes a new instance of the StringIsNullOrEmptyToBooleanConverter class.
Declaration
public StringIsNullOrEmptyToBooleanConverter()
Properties
View SourceIsEmptyPredicate
A predicate determining if an object of string is empty (or whitespace if WhiteSpaceIsNull is true).
Declaration
protected override Func<string, bool> IsEmptyPredicate { get; }
Property Value
| Type | Description |
|---|---|
| Func<string, bool> |
Overrides
View SourceWhiteSpaceIsNull
Gets a value indicating whether the converter should treat whitespace only strings as empty.
Declaration
public bool WhiteSpaceIsNull { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |