GetMatchedAssemblies() private method

private GetMatchedAssemblies ( ) : IEnumerable
return IEnumerable
示例#1
0
 private IEnumerable <TypeDefinition> GetMatchedTypes()
 {
     foreach (var assemblyDefinition in assembly.GetMatchedAssemblies())
     {
         foreach (var module in assemblyDefinition.Modules)
         {
             foreach (var type in module.Types)
             {
                 if (typeDiscovery(type))
                 {
                     yield return(type);
                 }
             }
         }
     }
 }
示例#2
0
 private IEnumerable <TypeDefinition> GetAllTypes()
 {
     return(assembly.GetMatchedAssemblies()
            .SelectMany(a => a.Modules)
            .SelectMany(m => m.Types));
 }