Code:
/ DotNET / DotNET / 8.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
- ListBoxAutomationPeer.cs
- ThreadExceptionEvent.cs
- SafeEventLogWriteHandle.cs
- securitycriticaldata.cs
- OperationSelectorBehavior.cs
- ActivityMarkupSerializer.cs
- ToolboxDataAttribute.cs
- QueryableDataSourceHelper.cs
- ClickablePoint.cs
- AgileSafeNativeMemoryHandle.cs
- CorrelationManager.cs
- BinaryParser.cs
- Synchronization.cs
- XmlSerializationWriter.cs
- EditModeSwitchButton.cs
- CompatibleIComparer.cs
- NavigationProgressEventArgs.cs
- CodeTypeMemberCollection.cs
- ParallelEnumerable.cs
- ConfigurationErrorsException.cs
- XPathChildIterator.cs
- TextCharacters.cs
- SortExpressionBuilder.cs
- BasicCommandTreeVisitor.cs
- SinglePageViewer.cs
- SystemIcmpV4Statistics.cs
- WebPartEditorCancelVerb.cs
- FileSystemEventArgs.cs
- AlternateViewCollection.cs
- BamlBinaryReader.cs
- SafePEFileHandle.cs
- SliderAutomationPeer.cs
- DependencyPropertyValueSerializer.cs
- SQLDouble.cs
- PageRequestManager.cs
- SiteMapProvider.cs
- DataGridViewIntLinkedList.cs
- SelectorItemAutomationPeer.cs
- Set.cs
- SubclassTypeValidatorAttribute.cs
- FixedFlowMap.cs
- OracleLob.cs
- TreeViewItemAutomationPeer.cs
- SqlProfileProvider.cs
- DesignerLoader.cs
- SqlCommandSet.cs
- WebExceptionStatus.cs
- ErrorLog.cs
- ValueChangedEventManager.cs
- FormViewUpdatedEventArgs.cs
- FontSourceCollection.cs
- BatchWriter.cs
- GlobalizationSection.cs
- IDReferencePropertyAttribute.cs
- DbDataReader.cs
- dataprotectionpermissionattribute.cs
- Page.cs
- WinCategoryAttribute.cs
- ListViewSelectEventArgs.cs
- ListViewItemMouseHoverEvent.cs
- RadialGradientBrush.cs
- DocumentPage.cs
- FindProgressChangedEventArgs.cs
- TextBlock.cs
- DbExpressionVisitor_TResultType.cs
- WizardDesigner.cs
- TableCellAutomationPeer.cs
- SerializableAttribute.cs
- ButtonPopupAdapter.cs
- DiagnosticStrings.cs
- oledbmetadatacolumnnames.cs
- ResponseStream.cs
- XmlSchemaProviderAttribute.cs
- VisemeEventArgs.cs
- ExpressionBindingsDialog.cs
- Crypto.cs
- HWStack.cs
- CookieHandler.cs
- TypeSystem.cs
- AncestorChangedEventArgs.cs
- RequestCache.cs
- SubpageParaClient.cs
- TemplateEditingService.cs
- DrawingDrawingContext.cs
- SynchronizedKeyedCollection.cs
- LayoutManager.cs
- _BufferOffsetSize.cs
- SessionStateModule.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- Button.cs
- Latin1Encoding.cs
- DetailsViewCommandEventArgs.cs
- DesignerActionVerbItem.cs
- IntegerValidatorAttribute.cs
- SignedXml.cs
- SqlParameterCollection.cs
- FixedTextView.cs
- XDeferredAxisSource.cs
- GenericTextProperties.cs
- SocketElement.cs