Take a look at the following code -
Response.Write("<table border=""1"">") Dim parameter As System.Reflection.ParameterInfo For Each parameter In minfo.GetParameters() Response.Write("<tr><td>") Response.Write(parameter.Name) Response.Write("</td><td>") Response.Write(parameter.ParameterType.ToString()) Response.Write("</td></tr>") Next Response.Write("</table>") |
Live Demo |
This does very much the same as the MemberInfo one before, but this time with parameters of a function. You will notice that it only returns one parameter (name) for Return1.