mgravell / fast-member

Automatically exported from code.google.com/p/fast-member
Apache License 2.0
1.02k stars 137 forks source link

Support BindingFlags.IgnoreCase #103

Open ivanmolenaar opened 11 months ago

ivanmolenaar commented 11 months ago

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.