/// <summary> /// 放入KeyValuePair构造 /// </summary> /// <param name="kkk"></param> public Record(KeyValuePair <string, object> kkk) { if (!kkk.IsBlank()) { this.Put(kkk.Key, kkk.Value); } }
/// <summary> /// 按照键值对获取下标 /// </summary> /// <param name="key"></param> /// <returns></returns> public int GetIndex(KeyValuePair <string, object> kkk) { if (this.IsBlank() || kkk.IsBlank()) { return(-1); } var t = this.ToList(); return(t.IndexOf(kkk)); }