Пример #1
0
        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;
            }
        }
Пример #2
0
 public RawDefinition(TagDefinition TagDef)
 {
     this.Owner = TagDef;
 }