public override bool HasPara(string para) { bool has = this.paras.ContainsKey(para); if (!has) { for (int i = 0; i < fieldList.Count; i++) { IFields f = fieldList[i]; if (f.HasField(para)) { return(true); } } } return(has); }
public override bool HasPara(string para) { IPara v = null; bool has = this.paras.TryGetValue(para, out v); if (!has) { for (int i = 0, maxi = fieldList.Count; i < maxi; i++) { IFields f = fieldList[i]; if (f.HasField(para)) { return(true); } } } return(has); }
public override IPara Get(string name) { IPara para = null; paras.TryGetValue(name, out para); if (para == null) { for (int i = 0; i < fieldList.Count; i++) { IFields f = fieldList[i]; if (f.HasField(name)) { para = f.Get(name); if (para != null) { return(para); } } } } return(para); }