##// END OF EJS Templates
Added utility class for safe disposing methods....
Added utility class for safe disposing methods. Added event fireing while promise is cancelled (needs some more work)

File last commit:

r1:6fb3b01ee971 default
r1:6fb3b01ee971 default
Show More
Safe.cs
19 lines | 384 B | text/x-csharp | CSharpLexer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Implab
{
public static class Safe
{
public static void Dispose<T>(ref T obj) where T : IDisposable
{
if (obj != null)
{
obj.Dispose();
obj = default(T);
}
}
}
}