private bool bolScriptModified = true;
private string strScriptText = null;
public string ScriptText {
get => strScriptText;
set {
if (strScriptText != value) {
bolScriptModified = true;
strScriptText = value;
}
}
}
屬性設定器自動偵測變更並標記需重新編譯。
private CompilerParameters myCompilerParameters = new CompilerParameters();
預設 GenerateInMemory=true、IncludeDebugInformation=true,參考組件集合可擴充。