mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-08 19:28:27 +02:00

* dotnet format style --severity info Some changes were manually reverted. * Address most dotnet format whitespace warnings * Address IDE0251 warnings * dotnet format whitespace after rebase
20 lines
328 B
C#
20 lines
328 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();
|
|
}
|
|
}
|
|
}
|