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())); }
public virtual CommonTypeContainer Create(ReflectionAssembly reflectionAssembly, MonoCecilAssembly monoCecilAssembly) { var allTypes = GetAllTypes(monoCecilAssembly); return(CreateCommonAssemblyContainer(reflectionAssembly, allTypes)); }