0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2025-01-05 19:42:01 +00:00
Ryujinx/src/Ryujinx.Horizon.Common/OnScopeExit.cs

20 lines
325 B
C#
Raw Normal View History

using System;
namespace Ryujinx.Horizon.Common
{
public readonly struct OnScopeExit : IDisposable
{
private readonly Action _action;
public OnScopeExit(Action action)
{
_action = action;
}
public void Dispose()
{
_action();
}
}
}