Right now, with an object Foo with property Bar, it's only possible to read or write if the capitalization exactly matches the actual property:
var wrapped = ObjectAccessor.Create(obj);
// Works
string propName = `Bar`
var result = wrapped[propName]
// Throws exception
string propName = `bar`
var result = wrapped[propName]
It would be a nice addition to optionally ignore capitalization.
Right now, with an object
Foo
with propertyBar
, it's only possible to read or write if the capitalization exactly matches the actual property:It would be a nice addition to optionally ignore capitalization.