IDisposableEx.cs 448 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Xml.Serialization;
  6. namespace Core.Util.Common
  7. {
  8. public interface IDisposableEx : IDisposable
  9. {
  10. /// <summary>
  11. /// 是否释放
  12. /// </summary>
  13. [XmlIgnore]
  14. bool Disposed { get; }
  15. /// <summary>
  16. /// 释放完事件
  17. /// </summary>
  18. event EventHandler OnDisposed;
  19. }
  20. }