Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ParentUndoUnit.cs
- MetadataHelper.cs
- UriParserTemplates.cs
- SafeProcessHandle.cs
- COM2EnumConverter.cs
- TextServicesHost.cs
- Renderer.cs
- LexicalChunk.cs
- Interop.cs
- FrameworkElement.cs
- WindowsUpDown.cs
- CultureMapper.cs
- StringPropertyBuilder.cs
- TypeSource.cs
- DataBoundControlHelper.cs
- NativeWindow.cs
- RootAction.cs
- ElementHost.cs
- UnknownBitmapEncoder.cs
- MSG.cs
- QueryStatement.cs
- TextElementEnumerator.cs
- WSHttpBindingBase.cs
- PrimaryKeyTypeConverter.cs
- FileAuthorizationModule.cs
- DataGridToolTip.cs
- XmlCodeExporter.cs
- formatter.cs
- PointAnimationUsingKeyFrames.cs
- _UriTypeConverter.cs
- CssTextWriter.cs
- TextRangeSerialization.cs
- SrgsNameValueTag.cs
- XMLSyntaxException.cs
- XmlAtomicValue.cs
- SqlParameterizer.cs
- RichTextBoxConstants.cs
- HttpServerVarsCollection.cs
- DrawingAttributesDefaultValueFactory.cs
- Drawing.cs
- SecureEnvironment.cs
- SQLDouble.cs
- HostedNamedPipeTransportManager.cs
- ExtendedProtectionPolicy.cs
- CapabilitiesAssignment.cs
- FlowDocumentView.cs
- ProgramNode.cs
- CodePrimitiveExpression.cs
- AutomationPropertyInfo.cs
- RoutedCommand.cs
- IsolatedStoragePermission.cs
- RequestQueue.cs
- GcSettings.cs
- VisualBrush.cs
- DocComment.cs
- CustomWebEventKey.cs
- SoapInteropTypes.cs
- UIHelper.cs
- DataGridItem.cs
- TaskExceptionHolder.cs
- SafeRightsManagementPubHandle.cs
- NativeRecognizer.cs
- TransactionException.cs
- XmlSchemaSimpleContentRestriction.cs
- DisposableCollectionWrapper.cs
- WizardPanel.cs
- OutputWindow.cs
- SslStreamSecurityBindingElement.cs
- AppSecurityManager.cs
- WindowsListViewScroll.cs
- DoubleLink.cs
- TrailingSpaceComparer.cs
- MulticastDelegate.cs
- RoutedEvent.cs
- SecurityRuntime.cs
- XamlTypeMapper.cs
- ServiceEndpointAssociationProvider.cs
- QilUnary.cs
- Application.cs
- KeyboardEventArgs.cs
- TraceData.cs
- ParsedRoute.cs
- ColumnBinding.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- XmlMapping.cs
- DataGridColumnReorderingEventArgs.cs
- pingexception.cs
- CutCopyPasteHelper.cs
- ListViewInsertionMark.cs
- DataBindingExpressionBuilder.cs
- TraceXPathNavigator.cs
- DbConnectionPoolCounters.cs
- CodeArrayIndexerExpression.cs
- RegexRunnerFactory.cs
- SqlRowUpdatingEvent.cs
- Application.cs
- _Connection.cs
- NumberFormatInfo.cs
- LinkAreaEditor.cs
- HostingEnvironmentSection.cs