C#:xmldocument 如何 释放文件资源,释放内存?

2025-05-09 17:24:54
推荐回答(1个)
回答1:

XmlDocument是托管资源 不需要你主动释放

一般需要主动释放的对象都会提供Close或者Dispose方法