wabbajack/Wabbajack.Common/DisposableUnlockable.cs
2021-10-23 10:51:17 -06:00

18 lines
294 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();
}
}