public override string SearchResultLabel(object item, string query) { if (item is Type) { return(TypeOption.SearchResultLabel((Type)item, query)); } else if (item is Member) { return(MemberOption.SearchResultLabel((Member)item, query, direction, expectingBoolean)); } throw new NotSupportedException(); }
public override string SearchResultLabel(object item, string query) { if (item is Type type) { return(TypeOption.SearchResultLabel(type, query)); } else if (item is IUnitOption unitOption) { return(unitOption.SearchResultLabel(query)); } else { return(base.SearchResultLabel(item, query)); } }
public override string SearchResultLabel(object item, string query) { return(TypeOption.SearchResultLabel((Type)item, query)); }