?
Solved

C# syntax - [...]

Posted on 2007-12-03
2
Medium Priority
?
680 Views
Last Modified: 2012-06-27
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
Comment
Question by:dkim18
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 1000 total points
ID: 20395764
that are attributes you can assign to your methods:
http://www.codeproject.com/csharp/attributes.asp
0
 
LVL 55

Assisted Solution

by:Jaime Olivares
Jaime Olivares earned 1000 total points
ID: 20395822
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question