##// END OF EJS Templates
minor cleanup
cin -
r31:dafaadca5b9f default
parent child
Show More
1 NO CONTENT: modified file, binary diff hidden
@@ -1,20 +1,17
1 1 using System;
2 2 using System.Collections.Generic;
3 3 using System.Linq;
4 4 using System.Text;
5 5
6 6 namespace Implab
7 7 {
8 8 public static class Safe
9 9 {
10 public static void Dispose<T>(ref T obj) where T : class
10 public static void Dispose<T>(T obj) where T : class
11 11 {
12 12 var disp = obj as IDisposable;
13 13 if (disp != null)
14 {
15 14 disp.Dispose();
16 obj = default(T);
17 }
18 15 }
19 16 }
20 17 }
General Comments 0
You need to be logged in to leave comments. Login now