public ActionBinding GetBinding(ActionDescriptor descriptor)
        {
            if (descriptor is null)
            {
                throw new ArgumentNullException(nameof(descriptor));
            }

            ParameterDescriptor[] descriptors = descriptor.GetParameterDescriptors();
            ParameterBinding[]    bindings    = Array.ConvertAll(descriptors, GetParameterBinding);
            ActionBinding         binding     = new ActionBinding(descriptor, bindings);

            EnsureOneBodyParameter(binding);
            return(binding);
        }