本文整理汇总了C#中FilterSettings.SearchTermMatches方法的典型用法代码示例。如果您正苦于以下问题:C# FilterSettings.SearchTermMatches方法的具体用法?C# FilterSettings.SearchTermMatches怎么用?C# FilterSettings.SearchTermMatches使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FilterSettings
的用法示例。
在下文中一共展示了FilterSettings.SearchTermMatches方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Filter
public override FilterResult Filter(FilterSettings settings)
{
if (settings.SearchTermMatches(this.name))
return FilterResult.MatchAndRecurse;
else
return FilterResult.Recurse;
}
示例2: Filter
public override FilterResult Filter(FilterSettings settings)
{
if (settings.SearchTermMatches(field.Name) && settings.Language.ShowMember(field))
return FilterResult.Match;
else
return FilterResult.Hidden;
}
示例3: Filter
public override FilterResult Filter(FilterSettings settings)
{
if (!settings.ShowInternalApi && (r.Attributes & ManifestResourceAttributes.VisibilityMask) == ManifestResourceAttributes.Private)
return FilterResult.Hidden;
if (settings.SearchTermMatches(r.Name))
return FilterResult.Match;
else
return FilterResult.Hidden;
}
示例4: Filter
public override FilterResult Filter(FilterSettings settings) {
var res = settings.Filter.GetFilterResult(this.Name, ((AssemblyTreeNode)Parent).DnSpyFile);
if (res.FilterResult != null)
return res.FilterResult.Value;
if (settings.SearchTermMatches(name))
return FilterResult.MatchAndRecurse;
else
return FilterResult.Recurse;
}
示例5: Filter
public override FilterResult Filter(FilterSettings settings)
{
if (!settings.ShowInternalApi && !IsPublicAPI)
return FilterResult.Hidden;
if (settings.SearchTermMatches(type.Name)) {
if (type.IsNested && !settings.Language.ShowMember(type))
return FilterResult.Hidden;
else
return FilterResult.Match;
} else
return FilterResult.Recurse;
}
示例6: Filter
public override FilterResult Filter(FilterSettings settings)
{
var res = settings.Filter.GetFilterResult(this);
if (res.FilterResult != null)
return res.FilterResult.Value;
if (settings.SearchTermMatches(type.Name)) {
if (type.IsNested && !settings.Language.ShowMember(type))
return FilterResult.Hidden;
else
return FilterResult.Match;
} else
return FilterResult.Recurse;
}
示例7: Filter
public override FilterResult Filter(FilterSettings settings)
{
if (!settings.ShowInternalApi && !IsPublicAPI)
return FilterResult.Hidden;
var searchableName = UnicodeSupport.FormatUnicodeIdentifier(type.Name);
if (settings.SearchTermMatches(searchableName))
{
if (settings.Language.ShowMember(type))
return FilterResult.Match;
else
return FilterResult.Hidden;
} else {
return FilterResult.Recurse;
}
}
示例8: Filter
public override FilterResult Filter(FilterSettings settings)
{
var res = settings.Filter.GetFilterResult(this.MethodDefinition);
if (res.FilterResult != null)
return res.FilterResult.Value;
if (settings.SearchTermMatches(method.Name) && settings.Language.ShowMember(method))
return FilterResult.Match;
else
return FilterResult.Hidden;
}
示例9: Filter
public override FilterResult Filter(FilterSettings settings)
{
if (settings.SearchTermMatches(assembly.ShortName))
return FilterResult.Match;
else
return FilterResult.Recurse;
}
示例10: Filter
public override FilterResult Filter(FilterSettings settings)
{
var res = settings.Filter.GetFilterResult(this.LoadedAssembly, AssemblyFilterType);
if (res.FilterResult != null)
return res.FilterResult.Value;
if (settings.SearchTermMatches(assembly.ShortName))
return FilterResult.Match;
else
return FilterResult.Recurse;
}
示例11: Filter
public override FilterResult Filter(FilterSettings settings) {
var res = settings.Filter.GetFilterResult(this.PropertyDef);
if (res.FilterResult != null)
return res.FilterResult.Value;
if (settings.SearchTermMatches(property.Name) && settings.Language.ShowMember(property))
return FilterResult.Match;
else
return FilterResult.Hidden;
}
示例12: Filter
public override FilterResult Filter(FilterSettings settings)
{
var res = settings.Filter.GetFilterResult(this);
if (res.FilterResult != null)
return res.FilterResult.Value;
if (settings.SearchTermMatches(r.Name))
return FilterResult.Match;
else
return FilterResult.Hidden;
}