Mercurial > pub > ImplabNet
diff Implab/Safe.cs @ 238:bdfdba6b645b v2
fixed unpredictable Safe.Dispose behaviour
author | cin |
---|---|
date | Fri, 01 Dec 2017 01:28:56 +0300 |
parents | 6fa235c5a760 |
children | 5cb4826c2c2a |
line wrap: on
line diff
--- a/Implab/Safe.cs Wed Nov 22 16:54:58 2017 +0300 +++ b/Implab/Safe.cs Fri Dec 01 01:28:56 2017 +0300 @@ -90,11 +90,9 @@ } public static void Dispose(object obj) { - if (obj is IDisposable) { + if (obj is IDisposable) Dispose((IDisposable)obj); - } else if (obj is IEnumerable) { - DisposeCollection((IEnumerable)obj); - } + } [DebuggerStepThrough]