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
- FileCodeGroup.cs
- BindStream.cs
- AttributeCollection.cs
- ToolStripCodeDomSerializer.cs
- ReflectTypeDescriptionProvider.cs
- EncoderNLS.cs
- ProviderSettings.cs
- PersonalizationProvider.cs
- ComponentSerializationService.cs
- ToolBarTray.cs
- ValueType.cs
- ObjectStateManagerMetadata.cs
- ItemCheckedEvent.cs
- PeerOutputChannel.cs
- StringUtil.cs
- HyperlinkAutomationPeer.cs
- DispatchWrapper.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ExpressionEditorSheet.cs
- HexParser.cs
- XdrBuilder.cs
- ImageIndexEditor.cs
- IteratorFilter.cs
- SoapAttributeOverrides.cs
- BasicHttpSecurityElement.cs
- XmlRootAttribute.cs
- IFlowDocumentViewer.cs
- ScriptHandlerFactory.cs
- ToolboxDataAttribute.cs
- MenuAutomationPeer.cs
- SingleAnimationUsingKeyFrames.cs
- BitmapData.cs
- UpdateDelegates.Generated.cs
- TrustLevelCollection.cs
- MediaElement.cs
- Attachment.cs
- TempEnvironment.cs
- DefaultValueConverter.cs
- CompilerState.cs
- Monitor.cs
- FormatConvertedBitmap.cs
- LocatorBase.cs
- RequestStatusBarUpdateEventArgs.cs
- XmlUtil.cs
- IApplicationTrustManager.cs
- ObjectDataSourceMethodEventArgs.cs
- Effect.cs
- SemanticBasicElement.cs
- QilScopedVisitor.cs
- EntityDataSourceChangingEventArgs.cs
- OpenTypeLayoutCache.cs
- DBPropSet.cs
- NotificationContext.cs
- Stylus.cs
- ActivatedMessageQueue.cs
- StorageInfo.cs
- Column.cs
- OverlappedAsyncResult.cs
- MergablePropertyAttribute.cs
- ReflectionUtil.cs
- AppendHelper.cs
- Missing.cs
- MemberMaps.cs
- ByteConverter.cs
- ComPlusServiceHost.cs
- UiaCoreTypesApi.cs
- TriState.cs
- WebRequestModulesSection.cs
- WebPartVerb.cs
- WebControlAdapter.cs
- KeyboardDevice.cs
- CodeDefaultValueExpression.cs
- CertificateManager.cs
- JulianCalendar.cs
- AnonymousIdentificationSection.cs
- DatePickerDateValidationErrorEventArgs.cs
- CaseStatement.cs
- NumberAction.cs
- TextParagraphView.cs
- WpfMemberInvoker.cs
- DecimalKeyFrameCollection.cs
- UrlPropertyAttribute.cs
- ComplexTypeEmitter.cs
- SqlMethods.cs
- WorkflowInstanceProvider.cs
- TrustSection.cs
- SortKey.cs
- ImageBrush.cs
- DataTableCollection.cs
- NullReferenceException.cs
- BitmapScalingModeValidation.cs
- ConfigurationPropertyAttribute.cs
- RegexCode.cs
- LogStream.cs
- EntityClientCacheKey.cs
- WorkflowFileItem.cs
- ValueQuery.cs
- EntityViewGenerator.cs
- NeutralResourcesLanguageAttribute.cs
- ContractInstanceProvider.cs