C# syntax - [...]

Hi,

I haven't seen this syntax before. Can you explain it to me how it is used and direct me to the tutorial or example links?
Thanks much.

What is this [] thing??
[Bindable( true ), Category( "Display" ), NotifyParentProperty( true ),
             DefaultValue( Keys.Alt ),
             Description( "Specify modifier key for point editing" )]
dkim18Asked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
that are attributes you can assign to your methods:
http://www.codeproject.com/csharp/attributes.asp
0
 
Jaime OlivaresConnect With a Mentor Software ArchitectCommented:
Some attributes like Category, DefaultValue and Description are used by the property window in the IDE.
In this example if you create a control with the class you posted, and look at the properties window, you will see it falls in the Display category, also look at the Description box.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.