How to make Databinding type safe and support refactoring?
Note this answer uses WinForm and was written before C# had ‘NameOf()’ Thanks to Oliver for getting me started I now have a solution that both supports refactoring and is type safe. It also let me implement INotifyPropertyChanged so it copes with properties being renamed. It’s usage looks like: checkBoxCanEdit.Bind(c => c.Checked, person, p => … Read more