How do I free up memory for the objects of MSHTML Object library. For eg. if I have HtmlTableClass in my windows application then how do I free up the object or dispose the object.
    foreach (HtmlElement elem in elemColl)
                {               
                    if (elem.TagName == "TABLE")
                    {
                        if (((mshtml.HTMLTableClass)(elem.DomElement)).className != null)
                        {
                            if (((mshtml.HTMLTableClass)(elem.DomElement)).className.ToLower() == className)
I have used the instance of HTMLTableClass class. How do I free up the resource?