protected virtual void Dispose(bool disposing) { if (transformationServiceContainer != null) { transformationServiceContainer.Dispose(); transformationServiceContainer = null; } if (documentServiceContainer != null) { documentServiceContainer.Dispose(); documentServiceContainer = null; } if (xmlTransformable != null) { xmlTransformable.Dispose(); xmlTransformable = null; } if (xmlTransformation as XmlFileInfoDocument != null) { (xmlTransformation as XmlFileInfoDocument).Dispose(); xmlTransformation = null; } }