private void AppendAllMethodsToCustomMethodInfo(IEnumerable <MethodInfo> methods) { foreach (var method in methods) { CustomMethodInfo customMethodInfo = new CustomMethodInfo { Method = method, InParameterInfo = method.GetParameters(), OutParameterInfo = method.ReturnParameter }; CustomMethods.Add(customMethodInfo); } }