20 lines
297 B
C#
20 lines
297 B
C#
using System;
|
|
|
|
|
|
namespace UniJSON
|
|
{
|
|
public struct ActionDisposer : IDisposable
|
|
{
|
|
Action m_action;
|
|
|
|
public ActionDisposer(Action action)
|
|
{
|
|
m_action = action;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
m_action();
|
|
}
|
|
}
|
|
}
|