Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange syntax in the Class definition
Message
General information
Forum:
ASP.NET
Category:
Class design
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01316406
Message ID:
01316410
Views:
14
This message has been marked as the solution to the initial question of the thread.
>Hi everybody,
>
>Please forgive me for the newbie question. I'm reading C# book, but I'm only on the 6th chapter now.
>
>In the class I'm studying right now I see these lines
>
[Browsable(false)]
and
>
[Description("The ID of the TextBox control to count."), DefaultValue(""), Themeable(false), Category("Behavior")]
>
>Do you know what this syntax means?
>
>Thanks a lot in advance.

They're what are called attributes that can be attached to classes/methods. There is syntax that allows access to these values at runtime (via Reflection) to alter (or provide information about) the runtime behavior, or just as metadata about the item. The above attributes determine how and what the Visual Studio editor will handle/display this particular property in the property sheet.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform