Click or drag to resize

StateTransition Enumeration

Enum that defines the transition of an entity.

Namespace:  Xploration.Validation
Assembly:  Xploration.Validation (in Xploration.Validation.dll) Version: 1.0.0-alpha1
Syntax
public enum StateTransition
Members
  Member nameValueDescription
Undetermined0 Represents an undetermined transition.
Assigned1 Represents a transition of a null reference or default value to an instance reference or non default value.

A write operation to the container of the entity occured.

Removed2 Represents a transition of an instance reference or non default value to a null reference or default value.

A write operation to the container of the entity occured.

Modified3 Represents a transition of an instance reference or non default value to another instance reference or non default.

A write operation to the container of the entity occured.

Replaced4 Represents a transition of a reference or value to the same reference or value.

A write operation to the container of the entity occured.

Unchanged5 Represents un untouched reference or value.

No write operation to the container of the entity occured.

Examples
Old valueIs defaultNew valueIs defaultContainer operationTransition
nullYesObjectANoWriteAssigned
0Yes25NoWriteAssigned
nullYes"Foo"NoWriteAssigned
ObjectANonullYesWriteRemoved
25No0YesWriteRemoved
"Foo"NonullYesWriteRemoved
ObjectANoObjectBNoWriteModified
25No8NoWriteModified
"Bar"No"Foo"NoWriteModified
ObjectANoObjectANoWriteReplaced
25No25NoWriteReplaced
"Bar"No"Bar"NoWriteReplaced
ObjectANoObjectANoReadUnchanged
25No25NoReadUnchanged
"Bar"No"Bar"NoReadUnchanged
See Also