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
- PartialArray.cs
- BrowserDefinitionCollection.cs
- Bits.cs
- Int16AnimationBase.cs
- SqlIdentifier.cs
- SuppressMessageAttribute.cs
- WorkflowViewService.cs
- QueryInterceptorAttribute.cs
- QilTypeChecker.cs
- unsafeIndexingFilterStream.cs
- StateChangeEvent.cs
- ProfilePropertySettingsCollection.cs
- WebUtil.cs
- SqlColumnizer.cs
- GeneralTransform2DTo3D.cs
- DoubleUtil.cs
- FileUtil.cs
- XmlSchemaAnnotation.cs
- Section.cs
- CroppedBitmap.cs
- PrintDialog.cs
- PaintEvent.cs
- Assert.cs
- COM2PictureConverter.cs
- TableLayoutStyleCollection.cs
- ReferencedAssembly.cs
- DataShape.cs
- HtmlHistory.cs
- TextPattern.cs
- DataGridViewToolTip.cs
- FlowLayoutSettings.cs
- DetailsViewUpdatedEventArgs.cs
- _UriSyntax.cs
- cookiecontainer.cs
- TdsParserSessionPool.cs
- FlowchartDesigner.xaml.cs
- DataServiceRequestException.cs
- MergeFailedEvent.cs
- VirtualizedItemProviderWrapper.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- ConfigurationManagerHelper.cs
- BuildProviderCollection.cs
- WebPartConnectionsConnectVerb.cs
- ComponentCommands.cs
- DataGridViewIntLinkedList.cs
- OperatorExpressions.cs
- XmlSchemaSequence.cs
- MoveSizeWinEventHandler.cs
- BulletDecorator.cs
- Int32Rect.cs
- DataGridHeaderBorder.cs
- SplitterPanel.cs
- ConfigurationValue.cs
- processwaithandle.cs
- RSAOAEPKeyExchangeFormatter.cs
- ExtensionSurface.cs
- ContractReference.cs
- ReadOnlyTernaryTree.cs
- KerberosRequestorSecurityToken.cs
- TextServicesDisplayAttribute.cs
- FontInfo.cs
- MaterialGroup.cs
- Odbc32.cs
- StrokeSerializer.cs
- BaseValidator.cs
- DrawItemEvent.cs
- VectorValueSerializer.cs
- PerformanceCounterCategory.cs
- QueryCacheManager.cs
- ControlAdapter.cs
- EqualityArray.cs
- MouseActionConverter.cs
- PropagatorResult.cs
- SqlCommand.cs
- RangeValuePattern.cs
- CompensatableTransactionScopeActivity.cs
- AutomationElement.cs
- Completion.cs
- ScriptReference.cs
- PersistencePipeline.cs
- UnknownBitmapEncoder.cs
- _FtpDataStream.cs
- VisemeEventArgs.cs
- StorageMappingItemLoader.cs
- DataObjectFieldAttribute.cs
- XmlHierarchicalDataSourceView.cs
- GorillaCodec.cs
- BinaryMethodMessage.cs
- XPathSingletonIterator.cs
- FixedPosition.cs
- OptimalBreakSession.cs
- Deflater.cs
- ProjectionCamera.cs
- WindowsGraphicsWrapper.cs
- RectAnimationUsingKeyFrames.cs
- SqlBuilder.cs
- DeferredTextReference.cs
- invalidudtexception.cs
- StringPropertyBuilder.cs
- DocumentPageViewAutomationPeer.cs