Пример #1
0
 public FastReflectUserdataMethod(bool isStatic, Script script, Type type, string methodName, ScorpioMethodInfo[] methods, IScorpioFastReflectMethod fastMethod) {
     this.Initialize(isStatic, script, type, methodName, methods, fastMethod);
 }
Пример #2
0
 protected void Initialize(bool isStatic, Script script, Type type, string methodName, ScorpioMethodInfo[] methods, IScorpioFastReflectMethod fastMethod) {
     m_Script = script;
     m_IsStatic = isStatic;
     m_Type = type;
     m_MethodName = methodName;
     List<FunctionBase> functionMethod = new List<FunctionBase>();
     foreach (ScorpioMethodInfo method in methods) {
         functionMethod.Add(new FunctionFastMethod(fastMethod, method.ParameterType, method.ParamType, method.Params, method.ParameterTypes));
     }
     m_Methods = functionMethod.ToArray();
     m_Count = m_Methods.Length;
 }