public IEnumerable <IMember> Get(TypeInfo parameter) { var properties = _properties.Get(parameter) .ToArray(); var length = properties.Length; for (var i = 0; i < length; i++) { var property = properties[i]; if (_specification.IsSatisfiedBy(property)) { yield return(_members.Get(property)); } } var fields = _fields.Get(parameter) .ToArray(); var l = fields.Length; for (var i = 0; i < l; i++) { var field = fields[i]; if (_specification.IsSatisfiedBy(field)) { yield return(_members.Get(field)); } } }
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); }