首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏dotNET编程大全

    C# 动态编译简介

    comPara.GenerateInMemory = false; // 是否在内存在输出 comPara.OutputAssembly = "SimpleCompile.exe"; // 输出文件 compiler.CompileAssemblyFromSource comPara.GenerateInMemory = true; // GetCode2() 见文末 CompilerResults compilerResults = compiler.CompileAssemblyFromSource

    1.5K20发布于 2021-11-01
  • 来自专栏.NET开发那点事

    使用CodeDom动态生成类型

    CompilerParameters param = new CompilerParameters(new string[] { "System.dll" }); CompilerResults rel = p.CompileAssemblyFromSource param = new CompilerParameters(new string[] { "System.dll" }); CompilerResults rel = p.CompileAssemblyFromSource

    1.2K30发布于 2018-10-09
  • 来自专栏c#Winform自定义控件系列

    c#动态执行字符串脚本(优化版)

    //添加类结束和命名空间结束括号 112 113 //得到编译器实例的返回结果 114 CompilerResults cr = comp.CompileAssemblyFromSource //在内存中运行 153 154 155 //得到编译器实例的返回结果 156 CompilerResults cr = comp.CompileAssemblyFromSource

    1.1K30编辑于 2023-03-30
  • 来自专栏HACK学习

    免杀|利用RGB隐写隐藏Shellcode

    System.Diagnostics.Process].Assembly.Location ) > $null # Compile Assembly $compilerResult = $codeCompiler.CompileAssemblyFromSource

    2.5K20发布于 2021-09-29
  • 来自专栏静谧的小码农

    C# 在线编译字符串型语句

    ;                                 //添加类结束和命名空间结束括号   //得到编译器实例的返回结果   CompilerResults cr = comp.CompileAssemblyFromSource

    1.1K20发布于 2019-01-11
  • 来自专栏.NET开发那点事

    ClassDescription

    CompilerParameters(new string[] { "System.dll" }); CompilerResults result = codeProvider.CompileAssemblyFromSource

    76520编辑于 2022-12-06
  • 来自专栏张善友的专栏

    .net 应用迁移到Mono 工具 (Moma)

    NHibernate.Bytecode.CodeDom.BytecodeProviderImpl/Generator: IReflectionOptimizer Build(string) CompilerResults CodeDomProvider.CompileAssemblyFromSource

    2.1K80发布于 2018-01-31
  • 来自专栏喵叔's 专栏

    【深入浅出C#】章节 9: C#高级主题:反射和动态编程

    parameters.ReferencedAssemblies.Add("System.dll"); // 编译代码 CompilerResults results = codeProvider.CompileAssemblyFromSource

    2K32编辑于 2023-09-03
领券