##// END OF EJS Templates
minor changes
cin -
r126:f7b2b8bfbb8c v2
parent child
Show More
@@ -36,11 +36,11 namespace Implab
36 36 throw new ArgumentOutOfRangeException(paramName);
37 37 }
38 38
39 public static void Dispose<T>(T obj) where T : class
39 public static void Dispose(params IDisposable[] objects)
40 40 {
41 var disp = obj as IDisposable;
42 if (disp != null)
43 disp.Dispose();
41 foreach(var d in objects)
42 if (d != null)
43 d.Dispose();
44 44 }
45 45
46 46 [DebuggerStepThrough]
General Comments 0
You need to be logged in to leave comments. Login now