Mercurial > pub > ImplabNet
diff Implab/Safe.cs @ 31:dafaadca5b9f
minor cleanup
author | cin |
---|---|
date | Mon, 07 Apr 2014 18:17:00 +0400 |
parents | aa367305156b |
children | 2c332a9c64c0 |
line wrap: on
line diff
--- a/Implab/Safe.cs Mon Apr 07 03:25:57 2014 +0400 +++ b/Implab/Safe.cs Mon Apr 07 18:17:00 2014 +0400 @@ -7,14 +7,11 @@ { public static class Safe { - public static void Dispose<T>(ref T obj) where T : class + public static void Dispose<T>(T obj) where T : class { var disp = obj as IDisposable; if (disp != null) - { disp.Dispose(); - obj = default(T); - } } } }