Enumeration of common object lifecycle states.
enum
LifecycleState
See also:
Unknown
= -1
Unknown lifecycle state (e.g. for null references).
null
Remarks:
This lifecycle state is considered invalid.
invalid
Created
= 0
The object has been constructed but not yet initialized.
Initialized
= 1
The object has been initialized.
This lifecycle state is considered valid.
valid
Disposing
= 2
Disposal of the object has begun.
Disposed
= 3
Disposal of the object has finished.