/// <summary> /// Opens a new scope /// </summary> public static IDisposable Create() { var protector = new HandleProtector(Current); Current = protector; return protector; }
/// <summary> /// Opens a new scope /// </summary> public static IDisposable Create() { var protector = new HandleProtector(Current); Current = protector; return(protector); }
/// <summary> /// Creates a new instance of the <see cref="HandleProtector"/> class /// </summary> public HandleProtector(IHandleProtector previous) { _previous = previous; }