Example #1
0
 /// <summary>
 /// 添加新的引用
 /// <para>脚本中使用using或new关键词引用</para>
 /// </summary>
 /// <param name="name">引用名称</param>
 /// <param name="value">引用类</param>
 public static void AddUsing <T>(string name, VMUsing <T> value) where T : VMUsing <T>, new()
 {
     UsingMemory.Add(name, value);
 }
Example #2
0
 /// <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));
 }