public List <int> GetKeysInGroup(string group, bool ignoreCase = true) { return(KeyMappings .Where(key => string.Compare(key.Value.CustomGroup, group, ignoreCase) == 0) .Select(key => key.Key) .ToList()); }
public Dictionary <int, KeyConfig> GetKeysFromSegmentID(int segmentID) { return(KeyMappings .Where(key => key.Value.SegmentID == segmentID) .ToDictionary(key => key.Key, key => key.Value)); }