示例#1
0
 public void AddFunction(string name, MethodInfo methodInfo)
 {
     this[name] = ContextFactory.CreateFunction(methodInfo);
 }
示例#2
0
 public void AddFunction(string name, MethodInfo methodInfo, object targetObject)
 {
     this[name] = ContextFactory.CreateFunction(methodInfo, targetObject);
 }
示例#3
0
 public void AddFunction(string name, Type type, string functionName)
 {
     this[name] = ContextFactory.CreateFunction(type, functionName);
 }
示例#4
0
 public void AddFunction(string name, Type type, string functionName, object targetObject)
 {
     this[name] = ContextFactory.CreateFunction(type, functionName, targetObject);
 }
示例#5
0
 public void AddType <T>()
 {
     this[typeof(T).Name] = ContextFactory.CreateType(typeof(T));
 }
示例#6
0
 public void AddFunction <T>(string name, string functionName, T targetObject)
 {
     this[name] = ContextFactory.CreateFunction(typeof(T), functionName, targetObject);
 }
示例#7
0
 public void AddType(string name, Type t)
 {
     this[name] = ContextFactory.CreateType(t);
 }
示例#8
0
 public void AddType <T>(string name)
 {
     this[name] = ContextFactory.CreateType(typeof(T));
 }
示例#9
0
 public void AddType(Type t)
 {
     this[t.Name] = ContextFactory.CreateType(t);
 }
示例#10
0
 public void AddFunction(string name, MethodInfo methodInfo)
 {
     Set(name, ContextFactory.CreateFunction(methodInfo));
 }
示例#11
0
 public void AddFunction(string name, Type type, string methodName, object targetObject)
 {
     Set(name, ContextFactory.CreateFunction(type, methodName, targetObject));
 }
示例#12
0
 public void AddFunction(string name, Type type, string methodName)
 {
     Set(name, ContextFactory.CreateFunction(type, methodName));
 }
示例#13
0
 public void AddType(string name, Type type)
 {
     Set(name, ContextFactory.CreateType(type));
 }