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
- SchemaLookupTable.cs
- PropertyChangingEventArgs.cs
- OrthographicCamera.cs
- Misc.cs
- recordstatefactory.cs
- pingexception.cs
- ChtmlPhoneCallAdapter.cs
- ListenDesigner.cs
- ValidationErrorCollection.cs
- PackWebRequestFactory.cs
- CustomGrammar.cs
- XmlQueryOutput.cs
- RolePrincipal.cs
- SchemaTableOptionalColumn.cs
- ResourceDefaultValueAttribute.cs
- SspiNegotiationTokenProvider.cs
- PeerEndPoint.cs
- TranslateTransform3D.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SQLBinaryStorage.cs
- ZipPackage.cs
- Composition.cs
- BlurBitmapEffect.cs
- PointF.cs
- GPPOINTF.cs
- Transaction.cs
- Condition.cs
- ClientClassGenerator.cs
- ListViewUpdatedEventArgs.cs
- GuidConverter.cs
- UiaCoreProviderApi.cs
- Filter.cs
- CheckBoxList.cs
- UriWriter.cs
- EntityStoreSchemaFilterEntry.cs
- ArrayElementGridEntry.cs
- CodeRemoveEventStatement.cs
- QueryComponents.cs
- InputLangChangeEvent.cs
- XmlSchemaSimpleContent.cs
- TimeManager.cs
- DataGridColumnCollection.cs
- HwndStylusInputProvider.cs
- XmlSchemaComplexContentRestriction.cs
- MediaTimeline.cs
- assertwrapper.cs
- FillBehavior.cs
- DeclaredTypeValidatorAttribute.cs
- TaskFactory.cs
- EventLogException.cs
- DbProviderFactory.cs
- _SslSessionsCache.cs
- BrowserCapabilitiesCompiler.cs
- MouseActionValueSerializer.cs
- Guid.cs
- ProgressBarAutomationPeer.cs
- NullableFloatSumAggregationOperator.cs
- DataDocumentXPathNavigator.cs
- EventManager.cs
- RawStylusInput.cs
- ComponentChangedEvent.cs
- ConstNode.cs
- DetailsViewPageEventArgs.cs
- RotateTransform3D.cs
- Cursor.cs
- PartialTrustVisibleAssembliesSection.cs
- StateItem.cs
- TextReader.cs
- QueryTaskGroupState.cs
- ServiceDeploymentInfo.cs
- ObjectDataSource.cs
- ConnectionPoint.cs
- KeyedCollection.cs
- XPathDocument.cs
- RegexTree.cs
- HttpClientCertificate.cs
- TextEditorTables.cs
- Error.cs
- Debug.cs
- ExpressionBuilderCollection.cs
- XmlAttributeProperties.cs
- ThemeDirectoryCompiler.cs
- ConstraintEnumerator.cs
- FileDetails.cs
- Label.cs
- EntityTransaction.cs
- HiddenField.cs
- TableCell.cs
- MergablePropertyAttribute.cs
- TemplatePagerField.cs
- AsyncPostBackTrigger.cs
- XmlCompatibilityReader.cs
- MouseActionConverter.cs
- PerfCounters.cs
- WindowsToolbarAsMenu.cs
- KnownColorTable.cs
- LinqDataSourceUpdateEventArgs.cs
- ItemList.cs
- DateTimeValueSerializerContext.cs
- Crypto.cs