本気で言ってんの?…
class HeavyObject:IDisposable{
 int[] data;
 public HeavyObject(){data=new int[100000000];
 public void Dispose(){/*これ実装してdataを解放してくれ*/}
}