Parameter reflection: parameters with "" as their name

Eric McCorkle eric.mccorkle at
Thu Jan 24 19:33:29 UTC 2013

The current version of the spec for parameter reflection, found here:

states that if a parameter has no name, then the reflection API should
synthesize a name of the form "argN", where N is the index of the
parameter.  It also states that if a MethodParameters attribute has a
name index of 0, then it indicates a parameter with no name.

The question I have is, what if a MethodParameters attribute indicates a
name of "" (meaning, the empty string)?  Does this count as a valid
name, or should it be treated as a parameter with no name?

It is probably also worth thinking about invalid parameter names, for
example "10", "_", "+", " ", other whitespace characters, and so on.

More information about the core-libs-dev mailing list