Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _NegoStream.cs
- COM2PropertyDescriptor.cs
- ConversionContext.cs
- BinaryWriter.cs
- EventLogInternal.cs
- OutputCacheSettings.cs
- HyperLinkDataBindingHandler.cs
- Win32Exception.cs
- sitestring.cs
- NameValueConfigurationCollection.cs
- ScopedMessagePartSpecification.cs
- AsyncOperationManager.cs
- ListItemDetailViewAttribute.cs
- SeekStoryboard.cs
- GetPolicyDetailsRequest.cs
- CompositeFontInfo.cs
- Evaluator.cs
- WebPartMenuStyle.cs
- MessageSmuggler.cs
- WsatServiceCertificate.cs
- DocumentPageHost.cs
- ScriptManagerProxy.cs
- CacheSection.cs
- XamlPointCollectionSerializer.cs
- ValidatorUtils.cs
- Brushes.cs
- MessageQueuePermissionEntryCollection.cs
- TypeDefinition.cs
- PolicyValidationException.cs
- MobileUITypeEditor.cs
- TimeSpanValidator.cs
- NameValueSectionHandler.cs
- _ContextAwareResult.cs
- HtmlToClrEventProxy.cs
- CellLabel.cs
- EDesignUtil.cs
- InstanceNormalEvent.cs
- ParameterToken.cs
- XmlDataCollection.cs
- TreeNodeMouseHoverEvent.cs
- HttpModuleAction.cs
- CompressedStack.cs
- ConfigXmlDocument.cs
- HierarchicalDataBoundControl.cs
- ButtonBase.cs
- HistoryEventArgs.cs
- NetworkStream.cs
- ComboBoxRenderer.cs
- Setter.cs
- GreenMethods.cs
- DataGridViewRowPrePaintEventArgs.cs
- SHA512.cs
- EditableTreeList.cs
- ImageField.cs
- KeyManager.cs
- DateTimeConverter.cs
- NullableFloatMinMaxAggregationOperator.cs
- WebServiceEnumData.cs
- FormatConvertedBitmap.cs
- HwndSourceKeyboardInputSite.cs
- TemplateControlParser.cs
- SourceFileBuildProvider.cs
- SolidColorBrush.cs
- XmlRawWriterWrapper.cs
- ObjectTokenCategory.cs
- PropertyTabChangedEvent.cs
- WindowsSlider.cs
- ProvidePropertyAttribute.cs
- TaskFormBase.cs
- XmlAttributeProperties.cs
- HandlerBase.cs
- GridItem.cs
- OleDbPropertySetGuid.cs
- SocketAddress.cs
- TrackBar.cs
- TextDecorationCollectionConverter.cs
- Typography.cs
- Size.cs
- DynamicValueConverter.cs
- SHA256Managed.cs
- RuleConditionDialog.Designer.cs
- FormsAuthenticationConfiguration.cs
- _BufferOffsetSize.cs
- OperationAbortedException.cs
- ApplyTemplatesAction.cs
- LinqDataSourceHelper.cs
- DocumentScope.cs
- DataGridViewCellLinkedList.cs
- TableLayout.cs
- X509PeerCertificateAuthenticationElement.cs
- Utils.cs
- ipaddressinformationcollection.cs
- SQLDoubleStorage.cs
- JobDuplex.cs
- SimpleExpression.cs
- Scalars.cs
- TextEffectCollection.cs
- TrustLevel.cs
- DbConnectionHelper.cs
- SystemGatewayIPAddressInformation.cs