diff options
Diffstat (limited to 'src/mscorlib/src/System/ComponentModel/EditorBrowsableAttribute.cs')
-rw-r--r-- | src/mscorlib/src/System/ComponentModel/EditorBrowsableAttribute.cs | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/mscorlib/src/System/ComponentModel/EditorBrowsableAttribute.cs b/src/mscorlib/src/System/ComponentModel/EditorBrowsableAttribute.cs deleted file mode 100644 index a7946f8203..0000000000 --- a/src/mscorlib/src/System/ComponentModel/EditorBrowsableAttribute.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.ComponentModel -{ - [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Delegate | AttributeTargets.Interface)] - public sealed class EditorBrowsableAttribute : Attribute - { - private EditorBrowsableState browsableState; - - public EditorBrowsableAttribute(EditorBrowsableState state) - { - browsableState = state; - } - - public EditorBrowsableAttribute () : this(EditorBrowsableState.Always) { } - - public EditorBrowsableState State - { - get { return browsableState; } - } - - public override bool Equals(object obj) - { - if (obj == this) - { - return true; - } - - EditorBrowsableAttribute other = obj as EditorBrowsableAttribute; - - return (other != null) && other.browsableState == browsableState; - } - - public override int GetHashCode() - { - return base.GetHashCode(); - } - } - - public enum EditorBrowsableState - { - Always, - Never, - Advanced - } -} |