給定 HashSet<T> set; List<T> list; T t; 以下哪一項對小型收藏更有效? if (! list.Contains (t)) list.Add (t); 要麼 set.Add (t);
確定! 回上一頁