public int OrderOf(string name) { var property = ServerSide.FirstOrDefault(k => k.Name.ToLower() == name.ToLower()); if (property != null) { return(property.Order); } return(-1); }
public KeyInfo KeyByName(string name) { name = name.ToLower(); return(ServerSide.FirstOrDefault(k => k.Name.ToLower() == name)); }