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


C# FilterSettings类代码示例

本文整理汇总了C#中FilterSettings的典型用法代码示例。如果您正苦于以下问题:C# FilterSettings类的具体用法?C# FilterSettings怎么用?C# FilterSettings使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FilterSettings类属于命名空间,在下文中一共展示了FilterSettings类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Filter

		public virtual FilterResult Filter(FilterSettings settings)
		{
			if (string.IsNullOrEmpty(settings.SearchTerm))
				return FilterResult.Match;
			else
				return FilterResult.Hidden;
		}
开发者ID:hlesesne,项目名称:ILSpy,代码行数:7,代码来源:ILSpyTreeNode.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.SearchTermMatches(this.name))
				return FilterResult.MatchAndRecurse;
			else
				return FilterResult.Recurse;
		}
开发者ID:x-strong,项目名称:ILSpy,代码行数:7,代码来源:NamespaceTreeNode.cs

示例4: Filter

		public override FilterResult Filter(FilterSettings settings)
		{
			if (string.IsNullOrEmpty(settings.SearchTerm))
				return FilterResult.MatchAndRecurse;
			else
				return FilterResult.Recurse;
		}
开发者ID:Gobiner,项目名称:ILSpy,代码行数:7,代码来源:ResourceListTreeNode.cs

示例5: TreeWalker

 public TreeWalker(INode root, FilterSettings settings, NodeFilter filter)
 {
     _root = root;
     _settings = settings;
     _filter = filter ?? (m => FilterResult.Accept);
     _current = _root;
 }
开发者ID:jogibear9988,项目名称:AngleSharp,代码行数:7,代码来源:TreeWalker.cs

示例6: Filter

		public override FilterResult Filter(FilterSettings settings)
		{
			var res = settings.Filter.GetFilterResult(this);
			if (res.FilterResult != null)
				return res.FilterResult.Value;
			return base.Filter(settings);
		}
开发者ID:nakijun,项目名称:dnSpy,代码行数:7,代码来源:DerivedTypesTreeNode.cs

示例7: RunningTotalsTaskSettings

 // initialize settings to defaults
 public RunningTotalsTaskSettings()
 {
     VariableGroups = new List<string>();
     FilterSettings = new FilterSettings();
     DataOut = "WORK.OUT_TOTALS";
     VariableMeasure = "";
     VariableTotal = "";
 }
开发者ID:cjdinger,项目名称:SasRunningTotals,代码行数:9,代码来源:RunningTotalsTaskSettings.cs

示例8: 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

示例9: Filter

		public override FilterResult Filter(FilterSettings settings) {
			var res = settings.Filter.GetFilterResult(this);
			if (res.FilterResult != null)
				return res.FilterResult.Value;
			if (string.IsNullOrEmpty(settings.SearchTerm))
				return FilterResult.MatchAndRecurse;
			else
				return FilterResult.Recurse;
		}
开发者ID:arkanoid1,项目名称:dnSpy,代码行数:9,代码来源:ResourceListTreeNode.cs

示例10: NodeIterator

 public NodeIterator(INode root, FilterSettings settings, NodeFilter filter)
 {
     _root = root;
     _settings = settings;
     _filter = filter ?? (m => FilterResult.Accept);
     _beforeNode = true;
     _iterator = _root.GetElements<INode>(settings);
     _reference = _iterator.First();
 }
开发者ID:jogibear9988,项目名称:AngleSharp,代码行数:9,代码来源:NodeIterator.cs

示例11: 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

示例12: 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

示例13: 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

示例14: 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

示例15: StripSearchTerm

 FilterSettings StripSearchTerm(FilterSettings filterSettings)
 {
     if (filterSettings == null)
         return null;
     if (!string.IsNullOrEmpty(filterSettings.SearchTerm)) {
         filterSettings = filterSettings.Clone();
         filterSettings.SearchTerm = null;
     }
     return filterSettings;
 }
开发者ID:richardschneider,项目名称:ILSpy,代码行数:10,代码来源:ILSpyTreeNode.cs


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