Files
mono/mcs/class/System/System.ComponentModel/DesignTimeVisibleAttribute.cs
T
Tim Coleman fd3eb796ee 2002-11-11 Tim Coleman <[email protected]>
* list.unix:
        * list:
        * System.ComponentModel/DesignTimeVisibleAttribute.cs:
                Add new class

svn path=/trunk/mcs/; revision=8928
2002-11-12 02:05:34 +00:00

69 lines
1.3 KiB
C#

//
// System.ComponentModel.DesignTimeVisibleAttribute.cs
//
// Author:
// Tim Coleman ([email protected])
//
// Copyright (C) Tim Coleman, 2002
//
namespace System.ComponentModel {
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Interface)]
public sealed class DesignTimeVisibleAttribute : Attribute
{
#region Fields
bool visible;
public static readonly DesignTimeVisibleAttribute Default = new DesignTimeVisibleAttribute (true);
public static readonly DesignTimeVisibleAttribute No = new DesignTimeVisibleAttribute (false);
public static readonly DesignTimeVisibleAttribute Yes = new DesignTimeVisibleAttribute (true);
#endregion // Fields
#region Constructors
public DesignTimeVisibleAttribute ()
: this (true)
{
}
public DesignTimeVisibleAttribute (bool visible)
{
this.visible = visible;
}
#endregion // Constructors
#region Properties
public bool Visible {
get { return visible; }
}
#endregion // Properties
#region Methods
[MonoTODO]
public override bool Equals (object value)
{
throw new NotImplementedException ();
}
[MonoTODO]
public override int GetHashCode ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public override bool IsDefaultAttribute ()
{
throw new NotImplementedException ();
}
#endregion // Methods
}
}