Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 2.36 KB

UnDoField_T_.md

File metadata and controls

37 lines (27 loc) · 2.36 KB

UnDoField Class

Provides a simple wrapper for a field to automatically generate IUnDo operations.

public class UnDoField<T>
    where T : notnull

Type parameters

T

Inheritance System.Object 🡒 UnDoField

Constructors
UnDoField(IUnDoManager, Func<UnDoFieldChange<T>,object>) Creates a new instance of UnDoField<T>.
UnDoField(IUnDoManager, T, Func<UnDoFieldChange<T>,object>) Creates a new instance of UnDoField<T>.
Properties
Value Gets or sets the value of the field, generating a IUnDo operation on set.
Methods
PostSet(T) performs a post set treatment, included in the IUnDo operation.
PreSet(T) Performs a pre set treatment, included in the IUnDo operation.
ToT() Returns the underlying T.
Operators
implicit operator T(UnDoField<T>) Defines an implicit conversion of a UnDoField<T> to a T.