中文
Appearance
HashSet.Remove(item)
HashSet
移除集合中的元素。
T|null
void
let myHashSet = new HashSet<String>(String); //添加元素到 myHashSet myHashSet.Add("apple"); myHashSet.Add("banana"); myHashSet.Add("orange"); //移除元素"apple" myHashSet.Remove("apple");