G
Guest
Ok, Im at my wits end with trying to dispose of this class. Everything I try
either doesnt dispose the class or I get build error. Im using C#. What Im I
doing wrong?
XHTML_Library objXHTMLHolder = new XHTML_Library();
objXHTMLHolder.Method...
..
..
objXHTMLHolder.Method...
..
..
objXHTMLHolder.DisposeMyClass();
Response.End();
======================
public class XHTML_Library : XmlDocument //want to dispose the whole class
{
..
..
..
public void DisposeMyClass()
{
//im sure issue is here. How to I properly call IDispose here??
this.Dispose();
}
}
either doesnt dispose the class or I get build error. Im using C#. What Im I
doing wrong?
XHTML_Library objXHTMLHolder = new XHTML_Library();
objXHTMLHolder.Method...
..
..
objXHTMLHolder.Method...
..
..
objXHTMLHolder.DisposeMyClass();
Response.End();
======================
public class XHTML_Library : XmlDocument //want to dispose the whole class
{
..
..
..
public void DisposeMyClass()
{
//im sure issue is here. How to I properly call IDispose here??
this.Dispose();
}
}