Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / SettingsBindableAttribute.cs / 1 / SettingsBindableAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// Use this attribute to specify typical properties on components that can be bound /// to application settings. /// [AttributeUsage(AttributeTargets.Property)] public sealed class SettingsBindableAttribute : Attribute { ////// Specifies that a property is appropriate to bind settings to. /// public static readonly SettingsBindableAttribute Yes = new SettingsBindableAttribute(true); ////// Specifies that a property is not appropriate to bind settings to. /// public static readonly SettingsBindableAttribute No = new SettingsBindableAttribute(false); private bool _bindable = false; public SettingsBindableAttribute(bool bindable) { _bindable = bindable; } ////// Gets a value indicating whether a property is appropriate to bind settings to. /// public bool Bindable { get { return _bindable; } } public override bool Equals(object obj) { if (obj == this) { return true; } if (obj != null && obj is SettingsBindableAttribute) { return (((SettingsBindableAttribute)obj).Bindable == _bindable); } return false; } public override int GetHashCode() { return _bindable.GetHashCode(); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EmptyCollection.cs
- DataTable.cs
- TableLayoutPanelCellPosition.cs
- Debug.cs
- baseaxisquery.cs
- ConfigurationLocation.cs
- WorkflowWebHostingModule.cs
- AutoResizedEvent.cs
- AnnotationResourceCollection.cs
- AttachedAnnotationChangedEventArgs.cs
- AppDomainProtocolHandler.cs
- BuildProvidersCompiler.cs
- FormatterServices.cs
- TableLayoutStyleCollection.cs
- PrimitiveType.cs
- ComNativeDescriptor.cs
- OperationResponse.cs
- SetStoryboardSpeedRatio.cs
- ToolStripPanelCell.cs
- ExpressionEditorSheet.cs
- SqlHelper.cs
- DataGridViewCellStateChangedEventArgs.cs
- DecimalAnimationUsingKeyFrames.cs
- WindowsGrip.cs
- PropertyValueUIItem.cs
- Utils.cs
- ListMarkerLine.cs
- GeneralTransformGroup.cs
- sitestring.cs
- GCHandleCookieTable.cs
- MorphHelpers.cs
- PeerValidationBehavior.cs
- EncoderFallback.cs
- _ListenerAsyncResult.cs
- WmlTextBoxAdapter.cs
- SecurityResources.cs
- ToolStripOverflowButton.cs
- DataPagerFieldCollection.cs
- DataStorage.cs
- SystemIPGlobalProperties.cs
- SqlInternalConnection.cs
- MDIClient.cs
- DesignTimeParseData.cs
- HuffModule.cs
- ToolStripItemClickedEventArgs.cs
- VirtualPathUtility.cs
- IntegerFacetDescriptionElement.cs
- ResponseStream.cs
- Cursors.cs
- SQLInt16Storage.cs
- ClonableStack.cs
- MulticastNotSupportedException.cs
- CachedRequestParams.cs
- ResourceIDHelper.cs
- HitTestParameters3D.cs
- TimelineCollection.cs
- ListParaClient.cs
- StrongNameMembershipCondition.cs
- TextEditorSelection.cs
- ItemTypeToolStripMenuItem.cs
- SByteStorage.cs
- ReturnValue.cs
- LinkLabel.cs
- ToolTip.cs
- StringStorage.cs
- DrawListViewColumnHeaderEventArgs.cs
- RichTextBox.cs
- User.cs
- RuleSettingsCollection.cs
- ConfigurationValue.cs
- DataBoundControlHelper.cs
- DbMetaDataCollectionNames.cs
- PriorityChain.cs
- DeploymentSectionCache.cs
- TransformCryptoHandle.cs
- DataGridViewTextBoxColumn.cs
- WhitespaceRule.cs
- PrintPreviewGraphics.cs
- RbTree.cs
- SystemUnicastIPAddressInformation.cs
- UserControlAutomationPeer.cs
- ExpressionCopier.cs
- ZipIOLocalFileHeader.cs
- Pen.cs
- DataColumnCollection.cs
- UnauthorizedWebPart.cs
- SpanIndex.cs
- ControlPropertyNameConverter.cs
- CmsInterop.cs
- WebMessageEncoderFactory.cs
- UdpDiscoveryEndpointElement.cs
- ValidationEventArgs.cs
- CategoryAttribute.cs
- HierarchicalDataSourceControl.cs
- SelectionEditor.cs
- InputLanguageEventArgs.cs
- TextEditorTables.cs
- EmptyQuery.cs
- NewArrayExpression.cs
- _FtpControlStream.cs