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
- ListViewInsertionMark.cs
- RequestQueryParser.cs
- BitmapEncoder.cs
- HwndProxyElementProvider.cs
- RegexFCD.cs
- InstanceCompleteException.cs
- DoubleSumAggregationOperator.cs
- ScriptingProfileServiceSection.cs
- DebugHandleTracker.cs
- SqlConnectionFactory.cs
- MSHTMLHost.cs
- NetworkInformationException.cs
- AdRotator.cs
- _FtpControlStream.cs
- ParserExtension.cs
- RoleService.cs
- IconConverter.cs
- SerializationSectionGroup.cs
- TextTreeText.cs
- XmlBinaryReader.cs
- RequestCachePolicy.cs
- ToolStripContainerDesigner.cs
- ScrollProviderWrapper.cs
- FixUp.cs
- Int32Storage.cs
- Context.cs
- ActivityCollectionMarkupSerializer.cs
- BuildProvider.cs
- SystemIcmpV4Statistics.cs
- Message.cs
- ForeignKeyConstraint.cs
- Size.cs
- mda.cs
- BevelBitmapEffect.cs
- XmlFileEditor.cs
- PeerResolver.cs
- CreateRefExpr.cs
- WebHttpBinding.cs
- QilFunction.cs
- TableLayoutCellPaintEventArgs.cs
- connectionpool.cs
- XmlEnumAttribute.cs
- FamilyCollection.cs
- Baml6ConstructorInfo.cs
- EntityConnection.cs
- PropertyPathWorker.cs
- ListViewItem.cs
- ServiceMetadataExtension.cs
- EdmToObjectNamespaceMap.cs
- FloaterBaseParagraph.cs
- CapabilitiesSection.cs
- XmlCodeExporter.cs
- SpinWait.cs
- OleDbRowUpdatingEvent.cs
- TableCell.cs
- XmlNullResolver.cs
- BlurEffect.cs
- PseudoWebRequest.cs
- SlipBehavior.cs
- StretchValidation.cs
- XmlElementList.cs
- PartialCachingControl.cs
- SessionEndingCancelEventArgs.cs
- UnsignedPublishLicense.cs
- ResourceReferenceKeyNotFoundException.cs
- FlowLayout.cs
- SystemFonts.cs
- TypeTypeConverter.cs
- ReferentialConstraint.cs
- RepeaterItem.cs
- GlobalItem.cs
- AddInActivator.cs
- Stroke.cs
- FlowDocumentFormatter.cs
- Converter.cs
- SafePointer.cs
- DependencyPropertyAttribute.cs
- RegionIterator.cs
- XmlSchemaChoice.cs
- TypeValidationEventArgs.cs
- DecimalAverageAggregationOperator.cs
- InstanceLockTracking.cs
- RequestBringIntoViewEventArgs.cs
- SQLDecimal.cs
- MimeMapping.cs
- DeflateStream.cs
- EntityTypeEmitter.cs
- COM2ColorConverter.cs
- XsltException.cs
- XPathParser.cs
- Parser.cs
- XmlElementAttribute.cs
- KeyEventArgs.cs
- ExpressionNormalizer.cs
- Validator.cs
- sqlcontext.cs
- ResXResourceSet.cs
- ProvideValueServiceProvider.cs
- Type.cs
- StyleTypedPropertyAttribute.cs