System.Reflection.Module.GetTypes C# (CSharp) Method

GetTypes() public method

public GetTypes ( ) : Type[]
return Type[]
        public virtual Type[] GetTypes()
        {
            StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;
            return GetTypesInternal(ref stackMark);
        }
        

Usage Example

        private static IEnumerable<string> CollectErrorsOnMemberAndDescendents(Module module, IEnumerable<Exemption> exemptions, Func<ICustomAttributeProvider, string, string, IEnumerable<Exemption>, IEnumerable<string>> coreChecker) {
            var types = module.GetTypes().Where(type => !IsGeneratedCode(type));

            return Enumerable.Concat(
                coreChecker(module, module.Name, "module", exemptions),
                types.SelectMany(type => CollectErrorsOnMemberAndDescendents(type, exemptions, coreChecker)));
        }
All Usage Examples Of System.Reflection.Module::GetTypes