public ActionDescriptor(CodeGeneratorDescriptor descriptor,
            MethodInfo method)
        {
            if (descriptor == null)
            {
                throw new ArgumentNullException(nameof(descriptor));
            }

            if (method == null)
            {
                throw new ArgumentNullException(nameof(method));
            }

            Generator = descriptor;
            ActionMethod = method;
        }
Beispiel #2
0
        public ActionDescriptor(CodeGeneratorDescriptor descriptor,
                                MethodInfo method)
        {
            if (descriptor == null)
            {
                throw new ArgumentNullException(nameof(descriptor));
            }

            if (method == null)
            {
                throw new ArgumentNullException(nameof(method));
            }

            Generator    = descriptor;
            ActionMethod = method;
        }
Beispiel #3
0
 public ActionDescriptor([NotNull] CodeGeneratorDescriptor descriptor,
                         [NotNull] MethodInfo method)
 {
     Generator    = descriptor;
     ActionMethod = method;
 }