Imports System.Reflection Imports System.CodeDom Imports System.CodeDom.Compiler Public Class SourceComp '//编译器接口 Private m_Compiler As ICodeCompiler '//编译器参数 Private m_CompilerParameters As CompilerParameters '//引用的程序集 Private m_RefAssemblies As String() = {"System.dll", "System.Data.dll"} '//源代码 Private m_Source As String = "" '//记录是否是默认的源代码 Private m_Is_Default As Boolean = True '//记录编译状态 Private m_Compiled As Boolean = False '//编译生成的程序集 Private m_Assembly As System.Reflection.Assembly '//默认源代码生成的实例 Private m_tmpClass As Object '//默认源代码生成的实例函数 Private m_MethodInfo As System.Reflection.MethodInfo '//默认源代码函数的表达式参数 Private m_Expression As String '//返回程序集 |