private ShortCutGroup LookupOrCreateShortcutGroup(ICollection <ShortCutGroup> knownGroups, string groupKey) { if (string.IsNullOrWhiteSpace(this.ShortCutGroupKey)) { return(null); } var grp = knownGroups.FirstOrDefault(g => Equals(this.ShortCutGroupKey, g.Key)); if (grp == null) { grp = new ShortCutGroup { Key = groupKey }; knownGroups.Add(grp); } return(grp); }
protected bool Equals(ShortCutGroup other) { return(string.Equals(this.Key, other.Key)); }
protected bool Equals(ShortCutGroup other) { return string.Equals(this.Key, other.Key); }