mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-24 18:48:01 +02:00
28 lines
529 B
Beef
28 lines
529 B
Beef
using System;
|
|
using System.Collections;
|
|
using System.Text;
|
|
|
|
namespace Beefy.utils
|
|
{
|
|
public delegate void DisposeProxyDelegate();
|
|
|
|
public class DisposeProxy : IDisposable
|
|
{
|
|
public DisposeProxyDelegate mDisposeProxyDelegate;
|
|
|
|
public this(DisposeProxyDelegate theDelegate = null)
|
|
{
|
|
mDisposeProxyDelegate = theDelegate;
|
|
}
|
|
|
|
public ~this()
|
|
{
|
|
delete mDisposeProxyDelegate;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
mDisposeProxyDelegate();
|
|
}
|
|
}
|
|
}
|