Solved

C# syntax - [...]

Posted on 2007-12-03
2
674 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 143

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

820 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