ObjectStateTState Class

A serializable class that can be used to track the current and previous state of an object.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
[SerializableAttribute]
public class ObjectState<TState>
Inheritance
Object    ObjectStateTState

Type Parameters

TState
Type of the state to track.

Constructors

ObjectStateTState(String) Initializes a new instance of the ObjectStateTState class.
ObjectStateTState(String, TState) Initializes a new instance of the ObjectStateTState class.
ObjectStateTState(String, TState, TState) Initializes a new instance of the ObjectStateTState class.

Properties

CurrentState Gets or sets the current state of the object.
ObjectName Gets or sets a text label for the object whose state is being tracked.
PreviousState Gets or sets the previous state of the object.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Extension Methods

GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)

See Also