Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange syntax in the Class definition
Message
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01316406
Message ID:
01316410
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform