Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / ComponentModel / BrowsableAttribute.cs / 1 / BrowsableAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class BrowsableAttribute : Attribute { ///Specifies whether a property or event should be displayed in /// a property browsing window. ////// public static readonly BrowsableAttribute Yes = new BrowsableAttribute(true); ////// Specifies that a property or event can be modified at /// design time. This ////// field is read-only. /// /// public static readonly BrowsableAttribute No = new BrowsableAttribute(false); ////// Specifies that a property or event cannot be modified at /// design time. This ///field is read-only. /// /// public static readonly BrowsableAttribute Default = Yes; private bool browsable = true; ///Specifies the default value for the ///, /// which is . This field is read-only. /// public BrowsableAttribute(bool browsable) { this.browsable = browsable; } ///Initializes a new instance of the ///class. /// public bool Browsable { get { return browsable; } } ////// Gets a value indicating whether an object is browsable. /// ////// /// public override bool Equals(object obj) { if (obj == this) { return true; } BrowsableAttribute other = obj as BrowsableAttribute; return (other != null) && other.Browsable == browsable; } ////// public override int GetHashCode() { return browsable.GetHashCode(); } ///[To be supplied.] ////// /// public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class BrowsableAttribute : Attribute { ///Specifies whether a property or event should be displayed in /// a property browsing window. ////// public static readonly BrowsableAttribute Yes = new BrowsableAttribute(true); ////// Specifies that a property or event can be modified at /// design time. This ////// field is read-only. /// /// public static readonly BrowsableAttribute No = new BrowsableAttribute(false); ////// Specifies that a property or event cannot be modified at /// design time. This ///field is read-only. /// /// public static readonly BrowsableAttribute Default = Yes; private bool browsable = true; ///Specifies the default value for the ///, /// which is . This field is read-only. /// public BrowsableAttribute(bool browsable) { this.browsable = browsable; } ///Initializes a new instance of the ///class. /// public bool Browsable { get { return browsable; } } ////// Gets a value indicating whether an object is browsable. /// ////// /// public override bool Equals(object obj) { if (obj == this) { return true; } BrowsableAttribute other = obj as BrowsableAttribute; return (other != null) && other.Browsable == browsable; } ////// public override int GetHashCode() { return browsable.GetHashCode(); } ///[To be supplied.] ////// /// public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TimerElapsedEvenArgs.cs
- BitmapSource.cs
- TypedDataSetSchemaImporterExtension.cs
- UpdateProgress.cs
- GraphicsState.cs
- NativeMethods.cs
- EditorPartChrome.cs
- WebServiceHandler.cs
- DefaultValidator.cs
- ProxyFragment.cs
- PkcsMisc.cs
- SocketPermission.cs
- selecteditemcollection.cs
- ImageFormat.cs
- AnnotationObservableCollection.cs
- UserControlBuildProvider.cs
- RtfFormatStack.cs
- ScriptDescriptor.cs
- MasterPage.cs
- AttachedPropertyBrowsableAttribute.cs
- XsltConvert.cs
- UInt32.cs
- metadatamappinghashervisitor.cs
- Parsers.cs
- CaseInsensitiveHashCodeProvider.cs
- DateTime.cs
- RootDesignerSerializerAttribute.cs
- ImageKeyConverter.cs
- TrustSection.cs
- RefType.cs
- UIElementHelper.cs
- EdmItemCollection.cs
- SpellerError.cs
- Set.cs
- TextSchema.cs
- FlagsAttribute.cs
- FramingEncoders.cs
- GlyphCollection.cs
- HttpCapabilitiesSectionHandler.cs
- CodeAccessSecurityEngine.cs
- MappingItemCollection.cs
- login.cs
- SHA1CryptoServiceProvider.cs
- ResourceAttributes.cs
- WindowsStreamSecurityUpgradeProvider.cs
- CharacterHit.cs
- ListBoxItemWrapperAutomationPeer.cs
- Atom10FormatterFactory.cs
- ImageField.cs
- OperationContext.cs
- EventLogEntry.cs
- Decoder.cs
- DesignerSerializerAttribute.cs
- DoubleAnimation.cs
- FastEncoder.cs
- StructuredProperty.cs
- TaskExtensions.cs
- StackOverflowException.cs
- EntityAdapter.cs
- ClientScriptManager.cs
- WebColorConverter.cs
- XmlSerializerSection.cs
- BitConverter.cs
- ExceptionWrapper.cs
- ComAdminInterfaces.cs
- HtmlToClrEventProxy.cs
- FreeFormDragDropManager.cs
- CanExecuteRoutedEventArgs.cs
- CompilerGeneratedAttribute.cs
- ListViewItem.cs
- XmlAtomicValue.cs
- CallbackValidator.cs
- ColumnMapProcessor.cs
- SafeEventLogReadHandle.cs
- DataSvcMapFileSerializer.cs
- RawStylusInputCustomDataList.cs
- Helper.cs
- ObjectQueryExecutionPlan.cs
- Certificate.cs
- CqlIdentifiers.cs
- DecimalFormatter.cs
- ToolStripCodeDomSerializer.cs
- HashMembershipCondition.cs
- TimeoutValidationAttribute.cs
- BamlTreeMap.cs
- ProfileInfo.cs
- CodeEntryPointMethod.cs
- ServiceEndpoint.cs
- Span.cs
- DomainUpDown.cs
- VisualTarget.cs
- ImageConverter.cs
- RepeaterItem.cs
- baseaxisquery.cs
- InvokeMethodActivity.cs
- OdbcHandle.cs
- ZipIOLocalFileHeader.cs
- EventRouteFactory.cs
- PresentationSource.cs
- HostedNamedPipeTransportManager.cs