Attribute programming

Discussion in 'ASP .Net' started by James Lapalme, Jul 7, 2003.

  1. Hy,
    I understand that attribute programming is used to add metadata to the code,
    but since they are implemented with a class and we can extend that class, we
    should be able to do any normal class thing with attributes like:

    -Have methods
    -Use any kind of code in the constructor and the methods (ex. Use a
    MessageBox)

    But the run time will not execute a MessageBox in the constructor?? why?
    Where is it defiened that and attribute can only have fields (properties)
    and that the constructor is used only to init these
    fields....???

    James
     
    James Lapalme, Jul 7, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bostonasian
    Replies:
    1
    Views:
    835
    Joris Gillis
    Sep 18, 2005
  2. Replies:
    2
    Views:
    1,097
    Henry S. Thompson
    Mar 6, 2006
  3. Donnal Walter

    class attribute to instance attribute

    Donnal Walter, Jun 30, 2005, in forum: Python
    Replies:
    4
    Views:
    514
    Greg Ewing
    Jul 6, 2005
  4. Russell Warren
    Replies:
    5
    Views:
    494
    Russell Warren
    Jan 17, 2006
  5. anonymous
    Replies:
    1
    Views:
    6,039
Loading...

Share This Page