| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // System.ComponentModel.DescriptionAttribute.cs
- //
- // Author:
- // Miguel de Icaza ([email protected])
- //
- // (C) Ximian, Inc. http://www.ximian.com
- //
- //
- namespace System.ComponentModel {
- [AttributeUsage (AttributeTargets.Property | AttributeTargets.Event)]
- public class DescriptionAttribute : Attribute {
- string desc;
-
- public DescriptionAttribute (string name)
- {
- desc = name;
- }
- public DescriptionAttribute ()
- {
- desc = "";
- }
- public virtual string Description {
- get {
- return DescriptionValue;
- }
- }
- //
- // Notice that the default Description implementation uses this by default
- //
- protected string DescriptionValue {
- get {
- return desc;
- }
- set {
- desc = value;
- }
- }
- }
- }
|