Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / SettingsBindableAttribute.cs / 1305376 / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CallbackDebugElement.cs
- WindowsPrincipal.cs
- SelectionEditingBehavior.cs
- SqlRemoveConstantOrderBy.cs
- EncodingFallbackAwareXmlTextWriter.cs
- VisualStateGroup.cs
- FilterException.cs
- ServiceNotStartedException.cs
- ColorConvertedBitmap.cs
- NumberFormatInfo.cs
- IIS7WorkerRequest.cs
- LoginName.cs
- ObjectSpanRewriter.cs
- VisualBasicValue.cs
- PerfCounterSection.cs
- FigureHelper.cs
- DataSourceXmlTextReader.cs
- ProfileServiceManager.cs
- MetafileEditor.cs
- DateTimeConstantAttribute.cs
- HttpApplication.cs
- VersionUtil.cs
- _CookieModule.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- MarkupExtensionReturnTypeAttribute.cs
- XmlSchemaRedefine.cs
- DetailsViewRowCollection.cs
- TreeViewDesigner.cs
- URL.cs
- ToolStripSplitStackLayout.cs
- DataMemberConverter.cs
- ItemsChangedEventArgs.cs
- TranslateTransform.cs
- _ListenerAsyncResult.cs
- DataSvcMapFileSerializer.cs
- ListControlBuilder.cs
- ConnectionPoolManager.cs
- StylusPointProperty.cs
- OrderPreservingMergeHelper.cs
- TextContainerChangedEventArgs.cs
- DrawingAttributes.cs
- SqlRowUpdatedEvent.cs
- DesigntimeLicenseContext.cs
- BrowserTree.cs
- DynamicObject.cs
- BitStream.cs
- SessionStateSection.cs
- DeferredTextReference.cs
- ProcessModule.cs
- MailDefinition.cs
- ToolStripSettings.cs
- XhtmlBasicPanelAdapter.cs
- ByteStream.cs
- ListViewAutomationPeer.cs
- ConfigurationPropertyCollection.cs
- XmlSerializerFactory.cs
- Part.cs
- MasterPageCodeDomTreeGenerator.cs
- StructuredTypeEmitter.cs
- GeneratedView.cs
- ConsoleTraceListener.cs
- TextBoxView.cs
- XmlSchemaAttribute.cs
- DaylightTime.cs
- IndentTextWriter.cs
- User.cs
- SqlClientMetaDataCollectionNames.cs
- WebPartMinimizeVerb.cs
- ClientApiGenerator.cs
- XmlBindingWorker.cs
- FixedSOMTable.cs
- SafeTimerHandle.cs
- BuiltInPermissionSets.cs
- WorkflowDesignerColors.cs
- JournalEntryListConverter.cs
- XmlSchemaSimpleContentRestriction.cs
- ClientSideQueueItem.cs
- PeerNameResolver.cs
- MsdtcClusterUtils.cs
- ObjectPersistData.cs
- TypeDefinition.cs
- DebugView.cs
- ExcludeFromCodeCoverageAttribute.cs
- IntranetCredentialPolicy.cs
- UniqueSet.cs
- WebMessageEncodingElement.cs
- Event.cs
- UndoManager.cs
- PerformanceCounterNameAttribute.cs
- ParserExtension.cs
- Triplet.cs
- wgx_sdk_version.cs
- DPCustomTypeDescriptor.cs
- InertiaExpansionBehavior.cs
- ResXResourceWriter.cs
- ImageKeyConverter.cs
- ParentQuery.cs
- QueryPageSettingsEventArgs.cs
- WebEvents.cs
- DocumentViewerConstants.cs