Method Dispose
Dispose()
Removes all entries from the dictionary and prevents further use. Most members throw ObjectDisposedException afterwards.
Declaration
public void Dispose()
Implements
Remarks
Disposing is faster than Clear() and should be preferred for dictionaries that will not be used again, since it also avoids the cost of finalizing the dictionary.