Click or drag to resize

ObjectStateTState Class

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

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.177-beta
Syntax
[SerializableAttribute]
public class ObjectState<TState>
View Source

Type Parameters

TState
Type of the state to track.

The ObjectStateTState type exposes the following members.

Constructors
 NameDescription
Public methodObjectStateTState(String) Initializes a new instance of the ObjectStateTState class.
Public methodObjectStateTState(String, TState) Initializes a new instance of the ObjectStateTState class.
Public methodObjectStateTState(String, TState, TState) Initializes a new instance of the ObjectStateTState class.
Top
Properties
 NameDescription
Public propertyCurrentState Gets or sets the current state of the object.
Public propertyObjectName Gets or sets a text label for the object whose state is being tracked.
Public propertyPreviousState Gets or sets the previous state of the object.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also

Reference

GSF Namespace