Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
public string Process<T>(string name, string address) { var dataObj= new Data<T>(); List<T> currentList= dataObj.GetAll(name); }
现在我想在当前列表中搜索地址。客户端将调用 T,例如 - Process(Domain)("pc1","172.17.2.1")。域类包含名称和地址属性。GteAll 将返回所有值。
尝试关注
IEnumerable<T> myEnumerable = currentList.Select(current => current.address = address);