public virtual void Dispose() { MemoryState = MemoryObjectState.DELETING; try { DeleteOverridable(); } finally { MemoryState = MemoryObjectState.DELETED; } }
public virtual void GetObjectData(SerializationInfo info, StreamingContext ctxt) { MemoryState = MemoryObjectState.UNLOADING; try { MemoryUnload(info); } finally { MemoryState = MemoryObjectState.UNLOADED; } }
public virtual void Initialize() { if (MemoryState != MemoryObjectState.LOADED) { return; } else { MemoryState = MemoryObjectState.INITIALIZING; try { InitializeOverridable(); } finally { MemoryState = MemoryObjectState.ALIVE; } } }
public MemoryObject() { MemoryState = MemoryObjectState.LOADED; }
public MemoryObject(SerializationInfo info, StreamingContext ctxt) { MemoryState = MemoryObjectState.LOADING; MemoryLoad(info); MemoryState = MemoryObjectState.LOADED; }