Пример #1
0
 public static IAssembly RewriteModule(IMetadataHost host, PdbReader pdbReader, IAssembly assembly, ITypeReference contractClassType,
   ITypeReference compilerGeneratedAttributeType,
   ITypeReference systemAttributeType,
   ITypeReference systemBooleanType,
   ITypeReference systemObjectType,
   ITypeReference systemStringType,
   ITypeReference systemVoidType) {
   var me = new AsmMetaRewriter(host, pdbReader, contractClassType, compilerGeneratedAttributeType, systemAttributeType, systemBooleanType, systemObjectType, systemStringType, systemVoidType);
   return me.Rewrite(assembly);
 }
Пример #2
0
        public static IAssembly RewriteModule(IMetadataHost host, PdbReader pdbReader, IAssembly assembly, ITypeReference contractClassType,
                                              ITypeReference compilerGeneratedAttributeType,
                                              ITypeReference systemAttributeType,
                                              ITypeReference systemBooleanType,
                                              ITypeReference systemObjectType,
                                              ITypeReference systemStringType,
                                              ITypeReference systemVoidType)
        {
            var me = new AsmMetaRewriter(host, pdbReader, contractClassType, compilerGeneratedAttributeType, systemAttributeType, systemBooleanType, systemObjectType, systemStringType, systemVoidType);

            return(me.Rewrite(assembly));
        }