XslCompiledTransform and Stylesheet dispose

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Im using XslCompiledTransform to transform the Xml using XSL stylesheet. I create the instance of the XslCompiledTransform class using the following syntax.
<div style="color:Black;background-color:White; <pre>
XslCompiledTransform transformer = <span style="color:Blue; new XslCompiledTransform();
transformer.Load(<span style="color:#A31515; "C:\Test\Test.xsl");
[/code]
and then i call transformer.Transform() method.
Question is, will the transformer automatically release the style sheet handle? if not then how do release the stylesheet handle as soon as the transform is done?

View the full article
 
Back
Top