public override bool Equals(object obj) { FriendGroupEntry entry = obj as FriendGroupEntry; if (entry == null) { return(false); } if (null == Text) { return(null == entry.Text); } return(Text?.Equals(entry.Text, System.StringComparison.InvariantCultureIgnoreCase) ?? null == entry.Text); }
public void AddGroup(FriendGroupEntry group) { _groups[group.Text] = group; }