C#集合类便捷使用和初始化方法
Dictionary<string, int> dic = new Dictionary<string, int> { { "111", 1 }, { "222", 2 } };
HashSet<int> set = new HashSet<int> { 1 };
List<int> list = new List<int> {1};
int[] arr1 = new []{ 1, 2, 3 };
int[] arr = {1, 2, 3};
ArrayList arrayList = new ArrayList {2};
BitArray bitArray = new BitArray(new[] { true, true, false });
bitArray.Set(1, true);
Hashtable hashtable = new Hashtable {{"123", "true"}};
Queue queue = new Queue();
queue.Enqueue(1);
queue.Dequeue();
System.Collections.Stack stack = new Stack();
stack.Push(1);
stack.Pop();