you can't, the field definition belongs to the base. if it was a property you
could override it, add an attribute and return the base value.
-- bruce (sqlwork.com)
"Florian Paulus" wrote:
> Hi group,
>
> i'm wondering how to assign an attribute to a field that a class
> inherited from a base class.
>
> Say base class has a field protected string message, so in the derived
> class i want to assign an attribute to it, i don't know how.
>
> i don't want to override the base class field, just add an attribute.
> and i can't add it in the base class cause the different subclasses use
> different attributes for the same field.
>
> a quick answer is greatly appreciated
>
> cheers
>
> Florian
>
|