Hello, this is occurring w/in WPF and a control's validation rules definition, but I suspect it's more a problem regarding generics.
I've got the following generic class that derives from ValidationRule (WPF):
public class MyBaseRule<T> : ValidationRule
{
public T Data { get; set; }
...
}
And I've got implementation classes off of the generic class, like:
public class MyRule : MyBaseRule<SomeEnumeration>
{
public SomeEnumeration Data2 { get; set; }
...
}
Now in WPF, w/in the ValidationRules definition:
<Binding.ValidationRules>
<Validation:MyRule Data="SomeEnumerationValue" />
</Binding.ValidationRules>
This will FAIL, w/ a
NotImplementedException.
However, if I use Data2 in place of Data, things will work.
I have turned
OFF all pruning, obfuscation, and so on, to try and narrow this down. This is only happening after being run through SA.
Can anyone tell me why WPF can't see the Data property of the generic parent class, but is ok w/ seeing the Data2 property, which should be the same thing?
I've got the following generic class that derives from ValidationRule (WPF):
And I've got implementation classes off of the generic class, like:
Now in WPF, w/in the ValidationRules definition:
This will FAIL, w/ a NotImplementedException.
However, if I use Data2 in place of Data, things will work.
I have turned OFF all pruning, obfuscation, and so on, to try and narrow this down. This is only happening after being run through SA.
Can anyone tell me why WPF can't see the Data property of the generic parent class, but is ok w/ seeing the Data2 property, which should be the same thing?