Solved

C# syntax - [...]

Posted on 2007-12-03
2
671 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
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 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 250 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now