private bool InternalFilter(object obj) { var filter = editableTextBox?.Text.Trim(); if (string.IsNullOrWhiteSpace(filter)) return true; if (obj == null) return false; if (ItemsToExclude != null && ItemsToExclude.Cast<object>().Contains(obj)) return false; var value = ResolveSortMemberValue(obj); var text = value?.ToString(); return MatchText(filter, text); }
private bool InternalFilter(object obj) { var filter = editableTextBox?.Text; if (string.IsNullOrWhiteSpace(filter)) { return(true); } if (obj == null) { return(false); } if (ItemsToExclude != null && ItemsToExclude.Cast <object>().Contains(obj)) { return(false); } var value = ResolveDisplayMemberValue(obj); var text = value?.ToString(); return(MatchText(filter, text)); }