private Type CreateMetaInfoProperty(IEnumerable <ByNameGrouping> typesGroupesByName) { var typeBuilder = moduleBuilder.DefineType(MetaDataClassName, CodeGenerationUtils.PublicClass()); var finalType = new NamespaceContextGenerator("MetaData", moduleBuilder, typeBuilder, typesGroupesByName, CreateMetaDataGetter, (t, d) => BuildMetaInfoType(moduleBuilder, d), true).BuildType(); return(finalType.CreateType()); }
private Type CreateMetaInfoProperty(IEnumerable<ByNameGrouping> typesGroupesByName) { var typeBuilder = moduleBuilder.DefineType(MetaDataClassName, CodeGenerationUtils.PublicClass()); var finalType = new NamespaceContextGenerator("MetaData",moduleBuilder, typeBuilder, typesGroupesByName, CreateMetaDataGetter, (t,d) => BuildMetaInfoType(moduleBuilder,d),true).BuildType(); return finalType.CreateType(); }