Created
October 15, 2013 16:30
-
-
Save plioi/6994443 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parameters(method => | |
{ | |
//Attempt to find a perfect matching source for N calls. | |
var parameters = method.GetParameters(); | |
if (parameters.Length == 1) | |
return FindInputs(method.ReflectedType, parameters.Single().ParameterType); | |
//No matching source method, so call it once with with zero parameters. | |
return new[] { new object[] {} }; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment