diff Implab/Safe.cs @ 221:8808383fcb94 v2

fixed recursion in Safe.Dispose with IEnumerable
author cin
date Fri, 23 Jun 2017 01:03:42 +0300
parents fe5101083150
children 6fa235c5a760
line wrap: on
line diff
--- a/Implab/Safe.cs	Tue Jun 20 19:45:52 2017 +0300
+++ b/Implab/Safe.cs	Fri Jun 23 01:03:42 2017 +0300
@@ -79,7 +79,7 @@
             if (obj is IDisposable) {
                 Dispose((IDisposable)obj);
             } else if (obj is IEnumerable) {
-                Dispose((IEnumerable)obj);
+                DisposeCollection((IEnumerable)obj);
             }
         }