merge .FileFormats and .DataStructures

This commit is contained in:
Chris Forbes
2010-01-15 17:08:44 +13:00
parent 685056a3ca
commit a7c368f246
18 changed files with 17 additions and 155 deletions

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenRa
{
public class DisposableAction : IDisposable
{
public DisposableAction(Action a) { this.a = a; }
Action a;
bool disposed;
public void Dispose()
{
if (disposed) return;
disposed = true;
a();
GC.SuppressFinalize(this);
}
~DisposableAction()
{
Dispose();
}
}
}