/// <summary> /// The copy. /// </summary> public EhParameterInfoCollection Copy() { var result = new EhParameterInfoCollection(); result.AddRange(this.Select(ehParameterInfo => ehParameterInfo.Copy())); return(result); }
/// <summary> /// The get parameter infos. /// </summary> /// <param name="methodInfo"> /// The method info. /// </param> /// <returns> /// The <see cref="EhParameterInfoCollection"/>. /// </returns> private EhParameterInfoCollection GetParameterInfos(MethodInfo methodInfo) { var parameters = methodInfo.GetParameters(); var ehParameterInfos = new EhParameterInfoCollection(); for (var i = 0; i < parameters.Count(); i++) { ehParameterInfos.Add(new EhParameterInfo { Name = parameters[i].Name, ParameterType = parameters[i].ParameterType.FullName }); } return(ehParameterInfos); }