@@ -36,11 +36,11 namespace Implab | |||
|
36 | 36 | throw new ArgumentOutOfRangeException(paramName); |
|
37 | 37 | } |
|
38 | 38 | |
|
39 |
public static void Dispose |
|
|
39 | public static void Dispose(params IDisposable[] objects) | |
|
40 | 40 | { |
|
41 | var disp = obj as IDisposable; | |
|
42 |
if (d |
|
|
43 |
d |
|
|
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