Public feed #378944

Anonymous

public text v1 · immutable
Raw Edit
·published 2007-03-02 21:55 UTC
rendered paste body
public class SomeClass
{
    private static System.Collections.Generic.List<SomeClass> _Instances = new ....

    public SomeClass()
    {
        _Instances.Add(this);
    }

    void OnDispose()
    {
        _Instances.Remove(this);
    }
}