praeclarum / Bind

A small but powerful C# library for data binding
Other
204 stars 34 forks source link

Exception when attempting to update read-only property #9

Open JosiCoder opened 7 years ago

JosiCoder commented 7 years ago

Within Bind.cs, around line 100, I would propose to check for read-only property using CanWrite:

            } else if (p != null) {
                if(p.CanWrite) {
                    p.SetValue(target, value, null);
                }