public static SearchResult Map(WikipediaSearchResult wiki) { var matches = RegexOfSpanMatch.Matches(wiki.Snippet); return(new SearchResult { Source = "Wikipedia", Title = wiki.Title, Description = RegexOfSpanMatch.Replace(wiki.Snippet, "$1"), NavigateLink = $"{wiki.PageId}" }); }
protected bool Equals(WikipediaSearchResult other) { return(string.Equals(Title, other.Title) && PageId == other.PageId && WordCount == other.WordCount && string.Equals(Snippet, other.Snippet)); }