I had the following code snippet that is looking for an instance property by name:
var prop = Backend.GetType().GetProperty(fieldName);
Now I want to ignore the fieldName case, so I tried the following:
var prop = Backend.GetType().GetProperty(fieldName, BindingFlags.IgnoreCase);
... no dice. Now prop will not find field names that have an exact case.
Therefore ..... How to use .Net reflection to search for a property by name, ignoring the case?
mrbradleyt Nov 10 '08 at 22:15 2008-11-10 22:15
source share