Register properties without magic strings

Topics: Feature requests
Nov 2, 2012 at 9:32 AM


I would like to create PropertyData instances without the need of specifying the related property by a magic string.
Instead a lambda expression would be more refactoring friendly.

Consider these two variants:


public static readonly PropertyData
       ShopProperty = RegisterProperty("Shop", typeof(IShop));

using lambda expression

public static readonly PropertyData
       ShopProperty = RegisterProperty(x => x.Shop, typeof(IShop)); does it this way and I find it very comfortable.


Nov 2, 2012 at 4:18 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Nov 2, 2012 at 4:19 PM

I put it on the backlog. It doesn't have a high priority for us at the moment.