protected virtual void Dispose(bool IsDisposing) { if (!IsDisposed) { // Dispose unmanaged resources for (int i = 0; i < Streams.Count; i++) { Streams[i].Close(); Streams[i].Dispose(); } // Dispose managed resources if (IsDisposing) { Owner = null; Names.Clear(); Streams.Clear(); } IsDisposed = true; } }
public RawDefinition(TagDefinition TagDef) { this.Owner = TagDef; }