public static ScriptUsing Create(string src) { var scriptUsing = new ScriptUsing(); scriptUsing.SetScriptMethod(src); return(scriptUsing); }
/// <summary> /// 添加新的引用 /// <para>脚本中使用using或new关键词引用</para> /// </summary> /// <param name="name">引用名称</param> /// <param name="src">引用的脚本源码</param> public static void AddUsing(string name, string src) { UsingMemory.Add(name, ScriptUsing.Create(src)); }