bool IEntryFilter.Match(ITableEntryHandle entry) { foreach (string token in this.tokens) { foreach (ITableColumnDefinition column in this.columns) { if (entry.TryCreateStringContent(column, false, false, out string content) && content != null && content.IndexOf(token, StringComparison.CurrentCultureIgnoreCase) != -1) { return(true); } } } return(false); }
private static string GetColumnValueAsString(ITableEntryHandle entry, ITableColumnDefinition column) => entry.TryCreateStringContent(column, truncatedText: false, singleColumnView: false, content: out string columnValue) && (columnValue != null) ? columnValue : string.Empty;