Table of Contents

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 string

Initial value.

Properties

IsNullOrEmpty

Check whether string is null/empty or not.

public bool IsNullOrEmpty { get; }

Property Value

bool

IsNullOrWhiteSpace

Check whether string is null/blank or not.

public bool IsNullOrWhiteSpace { get; }

Property Value

bool

this[int]

Indexer to get character in string.

public char this[int index] { get; }

Parameters

index int

Index 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; }

Property Value

int