//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//------------------------------------------------------------------------------
namespace System.ComponentModel
{
using System.Security.Permissions;
///
/// [To be supplied.]
///
[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;
///
/// [To be supplied.]
///
public EditorBrowsableAttribute (EditorBrowsableState state) {
browsableState = state;
}
///
/// [To be supplied.]
///
public EditorBrowsableAttribute () :this (EditorBrowsableState.Always) {}
///
/// [To be supplied.]
///
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();
}
}
///
/// [To be supplied.]
///
public enum EditorBrowsableState
{
///
/// [To be supplied.]
///
Always,
///
/// [To be supplied.]
///
Never,
///
/// [To be supplied.]
///
Advanced
}
}