C# Class Qowaiv.Unknown

Helps handling the unknown status of Single Value Objects.
The 'unknown' case differences from the 'empty' case. Where 'empty' just means: Not set (yet), this is an unset (default) value, 'unknown' means that the user has set the value, saying, there must be some value, but I just don't know which value it should be. Note that not all scenario's that support 'empty' support 'unknown' too.
Mostra file Open project: Corniel/Qowaiv

Public Methods

Method Description
IsUnknown ( string val ) : bool

Returns true if the string represents unknown, otherwise false.

IsUnknown ( string val, CultureInfo culture ) : bool

Returns true if the string represents unknown, otherwise false.

Method Details

IsUnknown() public static method

Returns true if the string represents unknown, otherwise false.
public static IsUnknown ( string val ) : bool
val string /// The string value to test. ///
return bool

IsUnknown() public static method

Returns true if the string represents unknown, otherwise false.
public static IsUnknown ( string val, CultureInfo culture ) : bool
val string /// The string value to test. ///
culture System.Globalization.CultureInfo /// The culture to test for. ///
return bool