I’m trying to write this helper function for myself, bu I can’t because IPrefixLabel is internal.
Why is that? Because IPrefixLabel isn’t public, there isn’t another easy way for me to do what I’m trying to do here. I can’t cast the ‘child’ to ‘BaseField’ either because ‘BaseField’ requires a generic type parameter.
So, the only options I have now are to either a) try to cast the child to each non-generic child class of ‘BaseType’, or b) use reflection to set the value via PropertyInfo.
Is there any chance that IPrefixLabel could be made public in the future? Is there a security concern about exposing it?
