コード例 #1
0
 public List <string> UsersByGroup(int id) =>
 (from user in UserInGroups.ToList() where user.GroupId == id select user.UserName).ToList();
コード例 #2
0
 private List <int> GroupIdByUser(string name) =>
 (from item in UserInGroups.ToList() where item.UserName == name select item.GroupId).ToList();