mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
19 lines
344 B
C#
19 lines
344 B
C#
|
using System;
|
||
|
|
||
|
namespace Wabbajack.Common
|
||
|
{
|
||
|
public struct DisposableUnlockable : IDisposable
|
||
|
{
|
||
|
private readonly IUnlockable _unlock;
|
||
|
|
||
|
public DisposableUnlockable(IUnlockable unlock)
|
||
|
{
|
||
|
_unlock = unlock;
|
||
|
}
|
||
|
|
||
|
public void Dispose()
|
||
|
{
|
||
|
_unlock.Unlock();
|
||
|
}
|
||
|
}
|
||
|
}
|