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
- TextTreePropertyUndoUnit.cs
- DataRowCollection.cs
- WebPartEditorCancelVerb.cs
- XsdBuilder.cs
- CryptoApi.cs
- XmlNotation.cs
- DataStreams.cs
- HitTestFilterBehavior.cs
- SqlFormatter.cs
- remotingproxy.cs
- HijriCalendar.cs
- ScriptReference.cs
- XmlSchemaGroup.cs
- remotingproxy.cs
- ShapeTypeface.cs
- SpStreamWrapper.cs
- CompletionBookmark.cs
- AssemblyInfo.cs
- PerformanceCountersElement.cs
- COMException.cs
- ComponentEditorForm.cs
- BitmapEffectrendercontext.cs
- HttpPostProtocolImporter.cs
- DateTimeOffsetStorage.cs
- Currency.cs
- FormViewDeletedEventArgs.cs
- DataColumnPropertyDescriptor.cs
- CacheDependency.cs
- EntityDataSourceWrapper.cs
- RegexStringValidator.cs
- CultureTable.cs
- RemoteHelper.cs
- EntityProxyFactory.cs
- TypeInitializationException.cs
- PreviewPageInfo.cs
- OutputScope.cs
- AsyncStreamReader.cs
- FormViewCommandEventArgs.cs
- ConfigPathUtility.cs
- DispatcherFrame.cs
- NotifyParentPropertyAttribute.cs
- RefreshPropertiesAttribute.cs
- autovalidator.cs
- VisualProxy.cs
- EntityTypeBase.cs
- SmiEventSink.cs
- LOSFormatter.cs
- Highlights.cs
- XPathPatternBuilder.cs
- NextPreviousPagerField.cs
- KeyboardNavigation.cs
- CodeIdentifiers.cs
- EventLogPermissionEntryCollection.cs
- SplitterCancelEvent.cs
- OdbcException.cs
- SQlBooleanStorage.cs
- ValidationSummary.cs
- ConfigurationProperty.cs
- VolatileEnlistmentMultiplexing.cs
- recordstatefactory.cs
- LogicalCallContext.cs
- xml.cs
- NativeMethods.cs
- WriteLine.cs
- HandleCollector.cs
- BoundField.cs
- ArgumentsParser.cs
- PerfCounters.cs
- RemotingConfigParser.cs
- WeakHashtable.cs
- Int32CollectionConverter.cs
- OlePropertyStructs.cs
- SqlConnectionPoolGroupProviderInfo.cs
- SynchronizationLockException.cs
- XhtmlBasicLiteralTextAdapter.cs
- DataGridCaption.cs
- Maps.cs
- ReadingWritingEntityEventArgs.cs
- HybridDictionary.cs
- XmlTextAttribute.cs
- AssemblyCache.cs
- SqlFacetAttribute.cs
- WebPartMenu.cs
- OracleEncoding.cs
- OleDbDataAdapter.cs
- ButtonRenderer.cs
- SystemDropShadowChrome.cs
- TextTreeUndoUnit.cs
- XmlComplianceUtil.cs
- ToolStripManager.cs
- TypefaceCollection.cs
- AggregateNode.cs
- WebSysDescriptionAttribute.cs
- SHA512.cs
- ReadOnlyTernaryTree.cs
- VerificationException.cs
- MasterPageParser.cs
- ProgressiveCrcCalculatingStream.cs
- ColumnResizeUndoUnit.cs
- TimeManager.cs