Table of Contents

Class ChangeEvent<T>

Namespace
Ceres.Events
Assembly
Ceres.dll

Sends an event when a value in a field changes.

public class ChangeEvent<T> : EventBase<ChangeEvent<T>>, IDisposable, IChangeEvent

Type Parameters

T
Inheritance
ChangeEvent<T>
Implements
Inherited Members
Extension Methods

Constructors

ChangeEvent()

Constructor.

public ChangeEvent()

Properties

NewValue

The new value.

public T NewValue { get; protected set; }

Property Value

T

PreviousValue

The value before the change occured.

public T PreviousValue { get; protected set; }

Property Value

T

Methods

GetPooled(T, T)

Gets an event from the event pool and initializes it with the given values. Use this function instead of creating new events. Events obtained using this method need to be released back to the pool. You can use Dispose() to release them.

public static ChangeEvent<T> GetPooled(T previousValue, T newValue)

Parameters

previousValue T

The previous value.

newValue T

The new value.

Returns

ChangeEvent<T>

An initialized event.

Init()

Sets the event to its initial state.

protected override void Init()