当前位置: 首页>>代码示例>>C#>>正文


C# FilterSettings.SearchTermMatches方法代码示例

本文整理汇总了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;
		}
开发者ID:x-strong,项目名称:ILSpy,代码行数:7,代码来源:NamespaceTreeNode.cs

示例2: Filter

		public override FilterResult Filter(FilterSettings settings)
		{
			if (settings.SearchTermMatches(field.Name) && settings.Language.ShowMember(field))
				return FilterResult.Match;
			else
				return FilterResult.Hidden;
		}
开发者ID:hlesesne,项目名称:ILSpy,代码行数:7,代码来源:FieldTreeNode.cs

示例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;
		}
开发者ID:Gobiner,项目名称:ILSpy,代码行数:9,代码来源:ResourceTreeNode.cs

示例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;
		}
开发者ID:arkanoid1,项目名称:dnSpy,代码行数:9,代码来源:NamespaceTreeNode.cs

示例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;
		}
开发者ID:KAW0,项目名称:Alter-Native,代码行数:12,代码来源:DerivedTypesEntryNode.cs

示例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;
		}
开发者ID:nakijun,项目名称:dnSpy,代码行数:13,代码来源:DerivedTypesEntryNode.cs

示例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;
			}
		}
开发者ID:x-strong,项目名称:ILSpy,代码行数:15,代码来源:TypeTreeNode.cs

示例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;
 }
开发者ID:4058665,项目名称:dnSpy,代码行数:10,代码来源:MethodTreeNode.cs

示例9: Filter

		public override FilterResult Filter(FilterSettings settings)
		{
			if (settings.SearchTermMatches(assembly.ShortName))
				return FilterResult.Match;
			else
				return FilterResult.Recurse;
		}
开发者ID:keremkusmezer,项目名称:ILSpy,代码行数:7,代码来源:AssemblyTreeNode.cs

示例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;
 }
开发者ID:gsong2014,项目名称:dnSpy,代码行数:10,代码来源:AssemblyTreeNode.cs

示例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;
		}
开发者ID:arkanoid1,项目名称:dnSpy,代码行数:9,代码来源:PropertyTreeNode.cs

示例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;
 }
开发者ID:BahNahNah,项目名称:dnSpy,代码行数:10,代码来源:ResourceTreeNode.cs


注:本文中的FilterSettings.SearchTermMatches方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。