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
- ManipulationPivot.cs
- BaseHashHelper.cs
- BrushProxy.cs
- __ConsoleStream.cs
- CodeMemberEvent.cs
- PropertyEmitter.cs
- GetPageNumberCompletedEventArgs.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- SetIterators.cs
- DigitShape.cs
- HyperLinkStyle.cs
- OrderedDictionary.cs
- ColorTranslator.cs
- StrokeDescriptor.cs
- VirtualPathData.cs
- TreeNodeEventArgs.cs
- UnknownBitmapDecoder.cs
- RequiredFieldValidator.cs
- CodeThrowExceptionStatement.cs
- Select.cs
- PolyLineSegment.cs
- TextEditorTables.cs
- MetadataResolver.cs
- ResourceReader.cs
- KeyValueSerializer.cs
- PeerResolverSettings.cs
- safelink.cs
- TrustManager.cs
- ColorConvertedBitmapExtension.cs
- AgileSafeNativeMemoryHandle.cs
- ToolStripRenderEventArgs.cs
- Typeface.cs
- ZoneButton.cs
- ToolStripHighContrastRenderer.cs
- ComplexTypeEmitter.cs
- CalendarButton.cs
- LassoSelectionBehavior.cs
- CqlQuery.cs
- WrapperSecurityCommunicationObject.cs
- SqlDataSource.cs
- WindowsBrush.cs
- RelationshipNavigation.cs
- WindowsScrollBarBits.cs
- BitmapEffectGeneralTransform.cs
- ReturnEventArgs.cs
- OrCondition.cs
- RegexStringValidator.cs
- XmlReaderSettings.cs
- TableColumnCollectionInternal.cs
- _UncName.cs
- TargetException.cs
- SocketException.cs
- HttpCacheVary.cs
- PageCodeDomTreeGenerator.cs
- FormViewCommandEventArgs.cs
- BaseResourcesBuildProvider.cs
- TextDecorationUnitValidation.cs
- MergeLocalizationDirectives.cs
- OleDbReferenceCollection.cs
- CollectionView.cs
- XmlStringTable.cs
- MimeFormReflector.cs
- IdnMapping.cs
- DiagnosticStrings.cs
- ActivationService.cs
- ISessionStateStore.cs
- DesignUtil.cs
- SQLBinary.cs
- SimpleModelProvider.cs
- TracedNativeMethods.cs
- PropertyTabChangedEvent.cs
- ValidationResult.cs
- SystemInfo.cs
- DefaultShape.cs
- COM2ICategorizePropertiesHandler.cs
- StreamGeometry.cs
- Array.cs
- ItemsChangedEventArgs.cs
- EventPrivateKey.cs
- RegexCompiler.cs
- StateMachine.cs
- ReferenceService.cs
- Adorner.cs
- XmlUtilWriter.cs
- RemotingClientProxy.cs
- WsdlInspector.cs
- DataSourceControl.cs
- SyndicationDeserializer.cs
- MissingMethodException.cs
- PackWebRequestFactory.cs
- PersonalizationProvider.cs
- MatrixTransform.cs
- MostlySingletonList.cs
- RouteItem.cs
- JsonReaderWriterFactory.cs
- XmlSchemaAny.cs
- NameSpaceEvent.cs
- HtmlTable.cs
- TransactionalPackage.cs
- StateDesigner.TransitionInfo.cs