Last post Jun 12, 2017 06:36 AM by Mikesdotnetting
Jun 11, 2017 07:33 AM|panfeng77|LINK
I can use clear to dispose a List or Dictionary,
but How can I free a ILookup?
thanks for your help
Jun 12, 2017 06:36 AM|Mikesdotnetting|LINK
You can set it to null. You only really need to use Dispose on unmanaged resources such as database connections that the .NET runtime is unable to monitor. All managed objects are tracked by the runtime and marked for disposal when they no longer have any
references to them.