Show / Hide Table of Contents

Class StringIsNullOrEmptyToBooleanConverter

Converts a string to a boolean depending whether the string is null or empty

Inheritance
object
MarkupExtension
ConverterExtensionBase
NullConverter<bool>
NullOrEmptyConverter<string, bool>
StringIsNullOrEmptyToBooleanConverter
Implements
IValueConverter
NullOrEmptyConverter<string, bool>.Convert(object, Type, object, CultureInfo)
NullOrEmptyConverter<string, bool>.IsEmptyPredicate
NullConverter<bool>.NotNull
NullConverter<bool>.Null
NullConverter<bool>.Convert(object, Type, object, CultureInfo)
NullConverter<bool>.ConvertBack(object, Type, object, CultureInfo)
ConverterExtensionBase.ProvideValue(IServiceProvider)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Sartorius.SAF.Presentation.Converter
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class StringIsNullOrEmptyToBooleanConverter : NullOrEmptyConverter<string, bool>, IValueConverter

Constructors

View Source

StringIsNullOrEmptyToBooleanConverter()

Initializes a new instance of the StringIsNullOrEmptyToBooleanConverter class.

Declaration
public StringIsNullOrEmptyToBooleanConverter()

Properties

View Source

IsEmptyPredicate

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
NullOrEmptyConverter<string, bool>.IsEmptyPredicate
View Source

WhiteSpaceIsNull

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

Implements

IValueConverter

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX