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


C# TypeDef.GetTypes方法代码示例

本文整理汇总了C#中TypeDef.GetTypes方法的典型用法代码示例。如果您正苦于以下问题:C# TypeDef.GetTypes方法的具体用法?C# TypeDef.GetTypes怎么用?C# TypeDef.GetTypes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TypeDef的用法示例。


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

示例1: Search

		void Search(DnSpyFile ownerModule, string nsOwner, TypeDef type) {
			var res = filter.GetFilterResult(type);
			if (res.FilterResult == FilterResult.Hidden)
				return;

			if (res.IsMatch && (IsMatch(type.FullName, type) || IsMatch(type.Name, type))) {
				onMatch(new SearchResult {
					Language = language,
					Object = type,
					NameObject = type,
					TypeImageInfo = TypeTreeNode.GetImageInfo(type, BackgroundType.Search),
					LocationObject = new NamespaceSearchResult(nsOwner),
					LocationImageInfo = GetImage("Namespace"),
					DnSpyFile = ownerModule,
				});
			}

			SearchMembers(ownerModule, type);

			foreach (var subType in type.GetTypes()) {
				cancellationToken.ThrowIfCancellationRequested();
				Search(ownerModule, subType);
			}
		}
开发者ID:arkanoid1,项目名称:dnSpy,代码行数:24,代码来源:FilterSearcher.cs

示例2: Search

        void Search(IDnSpyFile ownerModule, string nsOwner, TypeDef type)
        {
            var res = options.Filter.GetResult(type);
            if (res.FilterType == FilterType.Hide)
                return;
            CheckCustomAttributes(ownerModule, type, nsOwner);

            if (res.IsMatch && (IsMatch(type.FullName, type) || IsMatch(type.Name, type))) {
                options.OnMatch(new SearchResult {
                    Context = options.Context,
                    Object = type,
                    NameObject = type,
                    ObjectImageReference = options.DotNetImageManager.GetImageReference(type),
                    LocationObject = new NamespaceSearchResult(nsOwner),
                    LocationImageReference = options.DotNetImageManager.GetNamespaceImageReference(),
                    DnSpyFile = ownerModule,
                });
            }

            SearchMembers(ownerModule, type);

            foreach (var subType in type.GetTypes()) {
                options.CancellationToken.ThrowIfCancellationRequested();
                Search(ownerModule, subType);
            }
        }
开发者ID:yueding,项目名称:dnSpy,代码行数:26,代码来源:FilterSearcher.cs

示例3: AddAndNested

		public void AddAndNested(TypeDef type) {
			Add(type);
			foreach (var t in type.GetTypes())
				Add(t);
		}
开发者ID:RafaelRMachado,项目名称:de4dot,代码行数:5,代码来源:MethodCollection.cs


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