• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 689
  • Last Modified:

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" )]
0
dkim18
Asked:
dkim18
2 Solutions
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
that are attributes you can assign to your methods:
http://www.codeproject.com/csharp/attributes.asp
0
 
Jaime OlivaresCommented:
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now