Mercurial > pub > ImplabNet
view Implab/Safe.cs @ 32:8eca2652d2ff
fixed: StackOverflow in IPromiseBase.Then(handler)
fixed: hang in ChainMap method on empty arrays
author | cin |
---|---|
date | Tue, 08 Apr 2014 23:25:01 +0400 |
parents | dafaadca5b9f |
children | 2c332a9c64c0 |
line wrap: on
line source
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Implab { public static class Safe { public static void Dispose<T>(T obj) where T : class { var disp = obj as IDisposable; if (disp != null) disp.Dispose(); } } }