Skip to main content

EmptyHistory<T>

A class in Root.Township, the global namespace.

Undo history that stores nothing: pushes, undos and redos do nothing. Use the shared Instance where no history is wanted.

Constructors​

MemberWhat it is
EmptyHistory()Creates an EmptyHistory with default values.

Properties​

MemberWhat it is
static EmptyHistory<T> Instance { get; }The shared instance for T.
bool IsPushPossible { get; }Always false.
bool IsRedoPossible { get; }Always false.
bool IsUndoPossible { get; }Always false.

Events​

MemberWhat it is
event Action ItemPushedNever raised.

Methods​

MemberWhat it is
void Clear()Does nothing.
void Push(T item)Does nothing.
void Redo()Does nothing.
void Undo()Does nothing.