clear
Summary
Removes all keys and values from the dictionary.
Usage
public void clear()
Description
Removes all keys and values from the dictionary.
If a removed value is a reference, the value is not removed completely from memory if other references to the value are still held in memory.
Examples
1 2 3 4 | import System; Dictionary< int > dict = { a: 1, b: 2, c: 3 }; dict.clear(); |
Share
HTML | BBCode | Direct Link