Mercurial > pub > ImplabNet
changeset 31:dafaadca5b9f
minor cleanup
author | cin |
---|---|
date | Mon, 07 Apr 2014 18:17:00 +0400 |
parents | 2fad2d1f4b03 |
children | 8eca2652d2ff |
files | Implab.suo Implab/Safe.cs |
diffstat | 2 files changed, 1 insertions(+), 4 deletions(-) [+] |
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); - } } } }