StringVariable
Derives from RuntimeVariable<T>
.
Description
Represents an observable string
value that can be shared and modified throughout the application.
Public Properties
IsNullOrEmpty : bool
(get) - Whether the string isnull
or""
.IsNullOrWhiteSpace : bool
(get) - Whether the string isnull
or whitespace (including empty);
Public Methods
CopyFrom(StringVariable)
- Copies the value of anotherStringVariable
into this variable.CopyTo(StringVariable)
- Copies the value from this variable into anotherStringVariable
.Stringify(bool)
- Sets the value of this variable to the string representation of abool
value.Stringify(int)
- Sets the value of this variable to the string representation of a signedint
value.Stringify(float)
- Sets the value of this variable to the string representation of afloat
value.Stringify(double)
- Sets the value of this variable to the string representation of adouble
value.
NOTE: The Stringify()
methods will format the string using CultureInfo.CurrentCulture
.