| @@ -36,11 +36,11 namespace Implab | |||||
| 36 | throw new ArgumentOutOfRangeException(paramName); |
|
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; |
|
41 | foreach(var d in objects) | |
| 42 |
if (d |
|
42 | if (d != null) | |
| 43 |
d |
|
43 | d.Dispose(); | |
| 44 | } |
|
44 | } | |
| 45 |
|
45 | |||
| 46 | [DebuggerStepThrough] |
|
46 | [DebuggerStepThrough] | |
General Comments 0
You need to be logged in to leave comments.
Login now
