コード例 #1
0
 private Type GetActionType(Type[] typeArgs)
 {
     if (typeArgs.Length >= actionTypes.Length)
     {
         throw errorProvider.GetTooManyBindingParamError(actionTypes.Length - 1);
     }
     if (typeArgs.Length == 0)
     {
         return(actionTypes[typeArgs.Length]);
     }
     return(actionTypes[typeArgs.Length].MakeGenericType(typeArgs));
 }