Lets say I have two classes:
class A
{
[SortOrder(3)]
public string Name { get; set; }
}
class B : A
{
[SortBefore(*****)]
public string Age { get; set; }
}
Note the stars in the property attribute in the second class. Would it somehow (using expressions I guess) be possible to specify A.Name in the SortBefore attribute? Note that I'm not after the value of Name in an instance of A but the PropertyInfo for the property Name in A so that I, when working with the PropertyInfo for Age in B, can retrieve the SortOrder value from it's superclass.