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
- CodeNamespaceImportCollection.cs
- MethodBuilderInstantiation.cs
- SetterBase.cs
- InputBindingCollection.cs
- securitycriticaldata.cs
- AssemblyName.cs
- ConfigurationStrings.cs
- JumpList.cs
- Misc.cs
- XmlTextAttribute.cs
- FlowLayout.cs
- CachedCompositeFamily.cs
- CloudCollection.cs
- ValidateNames.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- MapPathBasedVirtualPathProvider.cs
- XmlSchemaSequence.cs
- DynamicEntity.cs
- AnnotationDocumentPaginator.cs
- OleDbConnectionInternal.cs
- XhtmlBasicValidationSummaryAdapter.cs
- Metadata.cs
- RegionData.cs
- sqlcontext.cs
- DeclarativeExpressionConditionDeclaration.cs
- AutomationPropertyInfo.cs
- SizeConverter.cs
- ListSourceHelper.cs
- DataGridViewButtonColumn.cs
- InternalBufferManager.cs
- FusionWrap.cs
- RowToFieldTransformer.cs
- GenericXmlSecurityToken.cs
- DescendentsWalkerBase.cs
- NamedPipeConnectionPoolSettingsElement.cs
- FixedSOMContainer.cs
- OleDbRowUpdatedEvent.cs
- PeerNeighborManager.cs
- RepeaterItem.cs
- PropertyInformation.cs
- ObjectSecurity.cs
- Byte.cs
- WindowsToolbarAsMenu.cs
- HealthMonitoringSection.cs
- OptimalTextSource.cs
- XmlBoundElement.cs
- CqlIdentifiers.cs
- PictureBox.cs
- ScriptingProfileServiceSection.cs
- DictationGrammar.cs
- XmlTypeAttribute.cs
- GiveFeedbackEvent.cs
- FocusChangedEventArgs.cs
- AggregateNode.cs
- InvokePattern.cs
- ChildTable.cs
- ListSourceHelper.cs
- QueryAccessibilityHelpEvent.cs
- _CookieModule.cs
- HttpModuleCollection.cs
- ContainerParaClient.cs
- QueryCreatedEventArgs.cs
- SqlCommand.cs
- ButtonBaseDesigner.cs
- PropertyPath.cs
- StatusBar.cs
- AppDomainEvidenceFactory.cs
- CanonicalXml.cs
- AuthenticationModulesSection.cs
- WebPermission.cs
- MarshalByRefObject.cs
- SystemInfo.cs
- HTMLTextWriter.cs
- TriggerActionCollection.cs
- PeerOutputChannel.cs
- DrawingBrush.cs
- Html32TextWriter.cs
- SqlParameterCollection.cs
- SpotLight.cs
- ValidatingPropertiesEventArgs.cs
- CorePropertiesFilter.cs
- GreenMethods.cs
- ProfessionalColorTable.cs
- SequenceDesigner.xaml.cs
- TextSelectionHelper.cs
- DetailsViewInsertEventArgs.cs
- InputLanguageManager.cs
- DataServiceKeyAttribute.cs
- MetadataCollection.cs
- RandomNumberGenerator.cs
- RoleManagerModule.cs
- MulticastOption.cs
- Attachment.cs
- OracleCommandSet.cs
- DbConnectionStringCommon.cs
- UrlPropertyAttribute.cs
- DispatcherFrame.cs
- DataGridViewIntLinkedList.cs
- SEHException.cs
- CodePageEncoding.cs