我使用的是的HttpWebRequest
,和我处理响应流中。是否有处置的正确方法的HttpWebRequest
,因为它不包含关闭或Dispose方法?
I am using a HttpWebRequest
, and am disposing of the response stream. Is there a correct method of disposing of the HttpWebRequest
, as it does not contain a close or dispose method?
如果这个类有特殊的处理要求,它会实现了IDisposable。因为它没有实现IDisposable,你可以假设没有什么特别的你需要做的。
If the class had special disposal requirements, it would have implemented IDisposable. Since it doesn't implement IDisposable, you may assume there's nothing special you need to do.