/// <summary>
            /// 执行
            /// </summary>
            /// <param name="paramValues"></param>
            /// <returns></returns>
            public object Invoke(object[] paramValues)
            {
                var instance = Activator.CreateInstance(InstanceType);
                //找到正确的参数对应顺序
                var parameterlist = InvokeMethod.GetParameters().Select(p => p.Name.ToLower()).ToList();
                var matchs        = _reg_brace_p_.Matches(Route);
                var l             = new List <string>();

                foreach (Match m in matchs)
                {
                    var key = m.Value.ToLower().Replace("{", "").Replace("}", "");
                    l.Add(key);
                }
                var newp = new List <object>();

                foreach (var item in parameterlist)
                {
                    if (l.Contains(item))
                    {
                        newp.Add(paramValues[l.IndexOf(item)]);
                    }
                }
                if (HasParentParameter)
                {
                    newp.Add(paramValues.Last());
                }

                return(InvokeMethod.Invoke(instance, newp.ToArray()));
            }
 private void ReadParameters()
 {
     (parameters, returnValueAttributes) = GetParameters(Reader, TypeProvider, GenericContext, InvokeMethodSignature, InvokeMethod.GetParameters());
 }