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
- VisualBasicDesignerHelper.cs
- RemoteTokenFactory.cs
- DiscoveryDocument.cs
- RSAPKCS1SignatureFormatter.cs
- SerializerWriterEventHandlers.cs
- EditingCoordinator.cs
- GeometryGroup.cs
- PropertyValueUIItem.cs
- UrlMappingCollection.cs
- SessionEndingCancelEventArgs.cs
- XmlSchemaGroupRef.cs
- BamlTreeMap.cs
- SHA512Managed.cs
- AnnotationComponentManager.cs
- CompilationUnit.cs
- DispatcherObject.cs
- EmissiveMaterial.cs
- XmlSchemaInferenceException.cs
- ScriptingWebServicesSectionGroup.cs
- XhtmlConformanceSection.cs
- LicenseException.cs
- SerialErrors.cs
- BooleanToVisibilityConverter.cs
- KeyedHashAlgorithm.cs
- SHA384Managed.cs
- XmlMembersMapping.cs
- SmtpTransport.cs
- OutputCacheSection.cs
- DiscoveryEndpointValidator.cs
- EndPoint.cs
- WindowsStatic.cs
- FormsAuthentication.cs
- DesignerObjectListAdapter.cs
- StringKeyFrameCollection.cs
- SetMemberBinder.cs
- OutputCacheSection.cs
- WarningException.cs
- ObjectCloneHelper.cs
- XMLUtil.cs
- XDRSchema.cs
- Int16Animation.cs
- RuleElement.cs
- ContactManager.cs
- ClientSettingsStore.cs
- ConditionCollection.cs
- DataGridViewComboBoxEditingControl.cs
- RIPEMD160Managed.cs
- SafeArrayRankMismatchException.cs
- ValidationSummary.cs
- TransformerConfigurationWizardBase.cs
- PolyLineSegment.cs
- OverrideMode.cs
- HtmlTableCellCollection.cs
- _PooledStream.cs
- BrowserCapabilitiesFactoryBase.cs
- OdbcConnection.cs
- ContentType.cs
- RtfToXamlReader.cs
- CodeTypeMember.cs
- PartialCachingControl.cs
- TableLayoutPanel.cs
- TabControl.cs
- JournalEntryListConverter.cs
- ButtonFieldBase.cs
- Clock.cs
- AppearanceEditorPart.cs
- Int32RectConverter.cs
- ConvertersCollection.cs
- BatchStream.cs
- DbModificationCommandTree.cs
- TextEffectResolver.cs
- SoapClientProtocol.cs
- AsnEncodedData.cs
- MissingFieldException.cs
- EventMetadata.cs
- CodeEventReferenceExpression.cs
- GlyphManager.cs
- GenericEnumConverter.cs
- TypeConverterHelper.cs
- UndirectedGraph.cs
- ParameterCollection.cs
- Menu.cs
- PerformanceCounterManager.cs
- StoryFragments.cs
- MarginCollapsingState.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- XmlILIndex.cs
- CheckBox.cs
- SecurityAlgorithmSuite.cs
- CompositionTarget.cs
- BCLDebug.cs
- XmlTextReaderImplHelpers.cs
- VideoDrawing.cs
- TriState.cs
- URLBuilder.cs
- HtmlWindow.cs
- ImageConverter.cs
- ClientClassGenerator.cs
- InstanceData.cs
- ExceptionHandler.cs