2989c163a8
* editorconfig: Add default charset * Change file encoding from UTF-8-BOM to UTF-8
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();
|
|
}
|
|
}
|
|
}
|