상속: ScriptFunction
예제 #1
0
 internal static BuiltinFunction BuiltinFunctionFor(Object obj, MethodInfo meth){
   if (Globals.BuiltinFunctionTable == null)
     Globals.BuiltinFunctionTable = new SimpleHashtable(64);
   BuiltinFunction result = (BuiltinFunction)Globals.BuiltinFunctionTable[meth];
   if (result != null) return result;
   result = new BuiltinFunction(obj, meth);
   lock (Globals.BuiltinFunctionTable){
     Globals.BuiltinFunctionTable[meth] = result;
   }
   return result;
 }
 internal static BuiltinFunction BuiltinFunctionFor(object obj, MethodInfo meth)
 {
     if (BuiltinFunctionTable == null)
     {
         BuiltinFunctionTable = new SimpleHashtable(0x40);
     }
     BuiltinFunction function = (BuiltinFunction) BuiltinFunctionTable[meth];
     if (function == null)
     {
         function = new BuiltinFunction(obj, meth);
         lock (BuiltinFunctionTable)
         {
             BuiltinFunctionTable[meth] = function;
         }
     }
     return function;
 }
예제 #3
0
파일: globals.cs 프로젝트: ydunk/masters
        internal static BuiltinFunction BuiltinFunctionFor(Object obj, MethodInfo meth)
        {
            if (Globals.BuiltinFunctionTable == null)
            {
                Globals.BuiltinFunctionTable = new SimpleHashtable(64);
            }
            BuiltinFunction result = (BuiltinFunction)Globals.BuiltinFunctionTable[meth];

            if (result != null)
            {
                return(result);
            }
            result = new BuiltinFunction(obj, meth);
            lock (Globals.BuiltinFunctionTable){
                Globals.BuiltinFunctionTable[meth] = result;
            }
            return(result);
        }
        internal static BuiltinFunction BuiltinFunctionFor(object obj, MethodInfo meth)
        {
            if (BuiltinFunctionTable == null)
            {
                BuiltinFunctionTable = new SimpleHashtable(0x40);
            }
            BuiltinFunction function = (BuiltinFunction)BuiltinFunctionTable[meth];

            if (function == null)
            {
                function = new BuiltinFunction(obj, meth);
                lock (BuiltinFunctionTable)
                {
                    BuiltinFunctionTable[meth] = function;
                }
            }
            return(function);
        }
예제 #5
0
 internal override Object Call(Object[] args, Object thisob)
 {
     return(BuiltinFunction.QuickCall(args, thisob, this.biFunc, this.method, this.engine));
 }