Class MutableObservableString
- Namespace
- CarinaStudio
- Assembly
- CarinaStudio.AppBase.Core.dll
Specific MutableObservableValue<T> for nullable string value.
public class MutableObservableString : MutableObservableValue<string?>, IObservable<string?>
- Inheritance
-
MutableObservableString
- Implements
- Inherited Members
- Extension Methods
Constructors
MutableObservableString(string?)
Initialize new MutableObservableString instance.
public MutableObservableString(string? initialValue = null)
Parameters
initialValue
stringInitial value.
Properties
IsNullOrEmpty
Check whether string is null/empty or not.
public bool IsNullOrEmpty { get; }
Property Value
IsNullOrWhiteSpace
Check whether string is null/blank or not.
public bool IsNullOrWhiteSpace { get; }
Property Value
this[int]
Indexer to get character in string.
public char this[int index] { get; }
Parameters
index
intIndex of character in string.
Property Value
- char
Character in string.
Length
Get the length of string. Return 0 if string is null.
public int Length { get; }