Applying atributes to an existing class

  • Thread starter Thread starter bamapookie
  • Start date Start date
B

bamapookie

I want to apply an attribute (ExpandableObjectConverter) to an existing
..NET class (actually, I want to apply it to
Microsoft.SharePoint.SPUser) Since this class already exists, I can't
just tack the attribue onto the class declaration. Is there any way to
do this?
 
No, there isn't. I'm sure you wouldn't want someone taking your class, and
changing it.

What you can do is inherit from this class, and apply the attribute to the
inherited class. Of course now you have to deal with this new class instead
of SPUser.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top