Skip to content

Instantly share code, notes, and snippets.

@rofr
Created June 20, 2015 12:10
Show Gist options
  • Save rofr/0dc9c0e1bf30bc82a9b3 to your computer and use it in GitHub Desktop.
Save rofr/0dc9c0e1bf30bc82a9b3 to your computer and use it in GitHub Desktop.
hackity hack..
internal static Boolean HasRefArg(MethodInfo methodInfo)
{
const string pattern = " ByRef[,)]";
return Regex.IsMatch(methodInfo.ToString(), pattern);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment