示例#1
0
 /// <summary>
 /// 静态哈希字典
 /// </summary>
 /// <param name="values">数据集合</param>
 /// <param name="getKey">哈希键值获取器</param>
 public staticDictionary(list <valueType> values, Func <valueType, keyType> getKey)
     : this(values.getKeyValueArray(getKey))
 {
 }
示例#2
0
 /// <summary>
 /// 静态哈希字典
 /// </summary>
 /// <param name="values">初始化键值对集合</param>
 public staticDictionary(list <keyValue <keyType, valueType> > values)
     : this(values.toArray())
 {
 }