Parameter p = new Parameter ("myParam", typeof (string), "default value");
MethodInfo method = typeof (MyClass).GetMethod ("MyMethod"); ParameterInfo[] parameters = method.GetParameters (); foreach (ParameterInfo paramInfo in parameters) { Console.WriteLine ("Name: " + paramInfo.Name); Console.WriteLine ("Type: " + paramInfo.ParameterType); Console.WriteLine ("HasDefaultValue: " + paramInfo.HasDefaultValue); Console.WriteLine ("DefaultValue: " + paramInfo.DefaultValue); }This example gets information about the parameters of the "MyMethod" method in the "MyClass" class and prints out their names, types, and default values (if any). Package library: Mono.CSharp