EditorBrowsableAttribute.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / EditorBrowsableAttribute.cs / 1 / EditorBrowsableAttribute.cs

                            //------------------------------------------------------------------------------ 
// 
//     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 
    } 
}


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK