Given class is using IDisposable interface. When static object test will subject to garbage collectionclass Class1:IDisposable{static object test = null;static void main(string[] args){class1 cv = new class1();cv.dispose();test = null;console.readline();}
}