public static T AddTo <T>([NotNull] this T resource,
                           [NotNull] Disposer disposer) where T : class, IDisposable
 {
     return(disposer.AddResource(resource));
 }
 public static void AddTo([NotNull] this Action disposeAction,
                          [NotNull] Disposer disposer)
 {
     disposer.AddResource(disposeAction);
 }
Exemple #3
0
 public SelkieTimer()
 {
     m_Disposer = new Disposer();
 }