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

  • Thread starter Thread starter David S. Zuza
  • Start date Start date
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
 
< 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.
 
Back
Top