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
- CorrelationTokenTypeConvertor.cs
- X509CertificateValidator.cs
- ClientFormsAuthenticationMembershipProvider.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DrawingGroup.cs
- CollectionDataContract.cs
- EUCJPEncoding.cs
- MembershipSection.cs
- CodeLabeledStatement.cs
- NonDualMessageSecurityOverHttpElement.cs
- LocatorPart.cs
- BitmapInitialize.cs
- HttpGetClientProtocol.cs
- XPathArrayIterator.cs
- ScriptIgnoreAttribute.cs
- ThemeDirectoryCompiler.cs
- MULTI_QI.cs
- DataGridColumnCollection.cs
- RMEnrollmentPage2.cs
- MenuTracker.cs
- FormView.cs
- SignalGate.cs
- Quaternion.cs
- RadioButtonBaseAdapter.cs
- TabletDevice.cs
- StructuralCache.cs
- PointLightBase.cs
- HitTestResult.cs
- OperationContractAttribute.cs
- ClientUrlResolverWrapper.cs
- FixedSOMLineRanges.cs
- M3DUtil.cs
- Content.cs
- DelayDesigner.cs
- MetadataAssemblyHelper.cs
- DetailsViewInsertedEventArgs.cs
- PasswordPropertyTextAttribute.cs
- SchemaEntity.cs
- FileDialogCustomPlacesCollection.cs
- EntityContainerEmitter.cs
- SimpleNameService.cs
- COM2ComponentEditor.cs
- SQLGuidStorage.cs
- ConfigurationLocationCollection.cs
- HttpStreamXmlDictionaryWriter.cs
- DataRow.cs
- UrlPath.cs
- TypeExtensionConverter.cs
- ChtmlFormAdapter.cs
- DataServiceQueryProvider.cs
- XamlTypeMapper.cs
- TextBoxAutomationPeer.cs
- SliderAutomationPeer.cs
- Cursor.cs
- ToolStripDropDownMenu.cs
- FileRegion.cs
- ContentPropertyAttribute.cs
- SafeNativeMethodsCLR.cs
- ToolStripItemRenderEventArgs.cs
- HttpCacheVary.cs
- XmlBinaryReaderSession.cs
- EnvelopedSignatureTransform.cs
- DataGridColumnCollectionEditor.cs
- LayoutUtils.cs
- TraceLevelStore.cs
- ExpressionPrefixAttribute.cs
- FileLogRecord.cs
- ObservableCollection.cs
- SourceSwitch.cs
- DesignerTransaction.cs
- WebControlToolBoxItem.cs
- DeadCharTextComposition.cs
- TreeViewItem.cs
- TimeSpanOrInfiniteValidator.cs
- MsmqHostedTransportConfiguration.cs
- AutoResetEvent.cs
- DbConnectionStringBuilder.cs
- InputGestureCollection.cs
- ItemsPresenter.cs
- CSharpCodeProvider.cs
- DesignerActionItem.cs
- arc.cs
- CodeComment.cs
- HttpContextServiceHost.cs
- Matrix.cs
- IdnMapping.cs
- DefaultAuthorizationContext.cs
- RolePrincipal.cs
- TextOutput.cs
- SqlConnectionPoolProviderInfo.cs
- ProxyDataContractResolver.cs
- BidOverLoads.cs
- UIElementIsland.cs
- QilInvoke.cs
- Number.cs
- InlineUIContainer.cs
- TextDecorations.cs
- EffectiveValueEntry.cs
- XmlILIndex.cs
- ParameterBuilder.cs