I'm using Reflection to iterate over the properties and fields of an
arbitrary object. For non-indexed properties it's
pi.GetValue(theObject, Nothing) for VB, or pi.GetValue(theObject, null)
For indexed properties, instead of Nothing (null) you pass an array of index
OK, no problem so far.
But how do you tell that the property is indexed? I've been all over the
PropertyInfo object in the debugger looking for a clue, all over the MSDN
library, and all over Google groups but I can't seem to figure out how to
tell without letting it pull an exception and handling it in the exception
handler - too ugly and slow to be the only way to do it.
This can't be that hard. Any suggestions?
Dacon Software Consulting