Table of Contents

Class CommandManager

Namespace
NanoByte.Common.Undo
Assembly
NanoByte.Common.dll

Factory methods for ICommandManager<T>.

public static class CommandManager
Inheritance
CommandManager

Methods

For<T>(T, string?)

Creates a new command manager.

public static ICommandManager<T> For<T>(T target, string? path = null) where T : class

Parameters

target T

The object being edited.

path string

The path of the file the target was loaded from. null if none.

Returns

ICommandManager<T>

Type Parameters

T