mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-24 08:37:11 +02:00
19 lines
325 B
C#
19 lines
325 B
C#
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();
|
|
}
|
|
}
|
|
}
|