Пример #1
0
 internal object RunWithExpectedTypes(RedwoodType[] knownArgTypes, object[] args)
 {
     RedwoodType[] types = RuntimeUtil.GetTypesFromArgs(args);
     for (int i = 0; i < knownArgTypes.Length; i++)
     {
         if (knownArgTypes[i] != null)
         {
             types[i] = knownArgTypes[i];
         }
     }
     return(RuntimeUtil.SelectSingleOverload(types, this).Run(args));
 }
Пример #2
0
 public object Run(params object[] args)
 {
     RedwoodType[] types = RuntimeUtil.GetTypesFromArgs(args);
     return(RuntimeUtil.SelectSingleOverload(types, this).Run(args));
 }