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
- ItemDragEvent.cs
- ListViewCancelEventArgs.cs
- RegexWorker.cs
- ModelServiceImpl.cs
- TextEditorSpelling.cs
- PersonalizationProvider.cs
- DoubleAnimationUsingKeyFrames.cs
- TempFiles.cs
- ValueCollectionParameterReader.cs
- RawStylusSystemGestureInputReport.cs
- Win32.cs
- DataViewSettingCollection.cs
- WorkflowEventArgs.cs
- NamedObject.cs
- XmlSignatureProperties.cs
- DBConnectionString.cs
- SortKey.cs
- sortedlist.cs
- FactoryGenerator.cs
- EnumerableRowCollectionExtensions.cs
- DecoderNLS.cs
- ReaderWriterLock.cs
- InfiniteIntConverter.cs
- FontStretchConverter.cs
- WSHttpSecurity.cs
- TryCatchDesigner.xaml.cs
- SchemaEntity.cs
- CatalogPart.cs
- HyperLinkField.cs
- TableSectionStyle.cs
- XPathSelectionIterator.cs
- SettingsAttributes.cs
- DataDocumentXPathNavigator.cs
- ComponentEditorPage.cs
- MetroSerializationManager.cs
- X509CertificateValidationMode.cs
- SqlCharStream.cs
- IsolatedStoragePermission.cs
- RectangleHotSpot.cs
- PathSegmentCollection.cs
- ConditionalAttribute.cs
- ExtractedStateEntry.cs
- RequiredAttributeAttribute.cs
- SymmetricAlgorithm.cs
- NotifyCollectionChangedEventArgs.cs
- Rect.cs
- ValidationSummaryDesigner.cs
- HttpVersion.cs
- WinHttpWebProxyFinder.cs
- DragStartedEventArgs.cs
- BitmapScalingModeValidation.cs
- SourceFileInfo.cs
- HttpServerVarsCollection.cs
- FormClosingEvent.cs
- BitmapEffectOutputConnector.cs
- DataChangedEventManager.cs
- PublisherMembershipCondition.cs
- QueueProcessor.cs
- EndGetFileNameFromUserRequest.cs
- SQLGuidStorage.cs
- TransportElement.cs
- Baml6ConstructorInfo.cs
- RequestTimeoutManager.cs
- RegexNode.cs
- SqlMetaData.cs
- ProfileModule.cs
- Comparer.cs
- NamespaceEmitter.cs
- ProcessInfo.cs
- ContentValidator.cs
- SearchForVirtualItemEventArgs.cs
- DataBoundControlHelper.cs
- DataGridHeaderBorder.cs
- PageContentCollection.cs
- HostedHttpRequestAsyncResult.cs
- ClientConfigPaths.cs
- CodeCompiler.cs
- Variable.cs
- InfocardExtendedInformationEntry.cs
- BinaryUtilClasses.cs
- XhtmlCssHandler.cs
- WebServiceData.cs
- EncodingFallbackAwareXmlTextWriter.cs
- KeyFrames.cs
- Tuple.cs
- FlatButtonAppearance.cs
- DataGridTableCollection.cs
- ListViewItem.cs
- sitestring.cs
- X509AudioLogo.cs
- DependencyObjectProvider.cs
- XPathPatternBuilder.cs
- MissingMethodException.cs
- SamlAuthorizationDecisionClaimResource.cs
- WizardPanel.cs
- PageThemeCodeDomTreeGenerator.cs
- XPathSelectionIterator.cs
- RSAPKCS1SignatureFormatter.cs
- FontFamily.cs
- ProvidePropertyAttribute.cs