using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CommonAI { abstract public class Disposable : IDisposable { public bool IsDesposed { get { return disposedValue; } } private bool disposedValue = false; protected abstract void Disposing(); public void Dispose() { if (!disposedValue) { disposedValue = true; Disposing(); } } } }