I give up what is this and where can I find more info about them.

D

David S. Zuza

< Category("Appearance"), DefaultValue(GetType(Double), "0.1"),
Description("Gets or Sets the opacity level of the panel.") >


I see these xml "Things" in other peoples code and they seem powerful. For
example I know this one will allow you to add a property of a component the
the properties view window. But what is this type of code called and where
can I get more info on them, and what they can do.

David S. Zuza
 
T

Tom Shelton

< Category("Appearance"), DefaultValue(GetType(Double), "0.1"),
Description("Gets or Sets the opacity level of the panel.") >

I see these xml "Things" in other peoples code and they seem powerful. For
example I know this one will allow you to add a property of a component the
the properties view window. But what is this type of code called and where
can I get more info on them, and what they can do.

David S. Zuza

They are called Attributes. They are classes that inherit from
System.Attribute. They are used a lot in conjunction with reflection
to convey extra information about an object, it's properties, and
methods.

As far as learning more about them, I would start by reading the
documentation.
 

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

Top