Show / Hide Table of Contents

Class StringIsNullOrEmptyToBooleanConverter

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

Inheritance
System.Object
System.Windows.Markup.MarkupExtension
ConverterExtensionBase
NullConverter<System.Boolean>
NullOrEmptyConverter<System.String, System.Boolean>
StringIsNullOrEmptyToBooleanConverter
Implements
System.Windows.Data.IValueConverter
NullOrEmptyConverter<String, Boolean>.Convert(Object, Type, Object, CultureInfo)
NullOrEmptyConverter<String, Boolean>.IsEmptyPredicate
NullConverter<Boolean>.NotNull
NullConverter<Boolean>.Null
NullConverter<Boolean>.Convert(Object, Type, Object, CultureInfo)
NullConverter<Boolean>.ConvertBack(Object, Type, Object, CultureInfo)
ConverterExtensionBase.ProvideValue(IServiceProvider)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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 System.String is empty (or whitespace if WhiteSpaceIsNull is true).

Declaration
protected override Func<string, bool> IsEmptyPredicate { get; }
Property Value
Type Description
System.Func<System.String, System.Boolean>
Overrides
Sartorius.SAF.Presentation.Converter.NullOrEmptyConverter<System.String, System.Boolean>.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
System.Boolean

Implements

System.Windows.Data.IValueConverter

Extension Methods

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