Esempio n. 1
0
 private static CommonTypeContainer CreateCommonAssemblyContainer(ReflectionAssembly reflectionAssembly, IEnumerable <MonoCecilType> allTypes)
 {
     return(new CommonTypeContainer(allTypes
                                    .Select(type => new CommonType(type, reflectionAssembly.GetTypeByName(type.FullName)))
                                    .Where(assemblyType => assemblyType.ReflectionType != null)
                                    .OrderBy(assemblyType => assemblyType.FullName.Length)
                                    .ThenBy(assemblyType => assemblyType.FullName)
                                    .ToArray()));
 }
Esempio n. 2
0
        public virtual CommonTypeContainer Create(ReflectionAssembly reflectionAssembly, MonoCecilAssembly monoCecilAssembly)
        {
            var allTypes = GetAllTypes(monoCecilAssembly);

            return(CreateCommonAssemblyContainer(reflectionAssembly, allTypes));
        }