1234567891011121314151617181920212223242526 |
- 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();
- }
- }
- }
- }
|