【发布时间】:2020-03-23 19:33:02
【问题描述】:
在使用MD5CryptoServiceProvider 时,我发现它可能需要处理,因为它继承自实现IDisposable 的HashAlgorithm 类。但是,the example in the docs 没有处理它。
我的问题是为什么 HashAlgorithm 类实现 IDisposable ?散列不只是发生在内存中的一些计算吗?什么样的非托管资源可能用于散列?
【问题讨论】:
标签: c# .net hash idisposable