wabbajack/Wabbajack.Common/DisposableUnlockable.cs

19 lines
344 B
C#
Raw Normal View History

2021-09-27 12:42:46 +00:00
using System;
namespace Wabbajack.Common
{
public struct DisposableUnlockable : IDisposable
{
private readonly IUnlockable _unlock;
public DisposableUnlockable(IUnlockable unlock)
{
_unlock = unlock;
}
public void Dispose()
{
_unlock.Unlock();
}
}
}