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
- NativeMethods.cs
- ListViewCancelEventArgs.cs
- UpdateCommand.cs
- DataServiceHost.cs
- HttpCapabilitiesSectionHandler.cs
- _HelperAsyncResults.cs
- LocalizableAttribute.cs
- SizeAnimationBase.cs
- _SslState.cs
- ThreadSafeList.cs
- Button.cs
- SynchronizationScope.cs
- ContentPlaceHolderDesigner.cs
- Icon.cs
- WebPartEditVerb.cs
- PermissionSetTriple.cs
- PersistencePipeline.cs
- XPathNavigatorKeyComparer.cs
- GestureRecognizer.cs
- FormCollection.cs
- FixedTextContainer.cs
- MessageSecurityVersion.cs
- SHA1Cng.cs
- EntityDataSourceUtil.cs
- StateValidator.cs
- TraceContextRecord.cs
- SingleConverter.cs
- Compensation.cs
- DropShadowBitmapEffect.cs
- AutoGeneratedFieldProperties.cs
- PageParserFilter.cs
- OracleParameter.cs
- ResolveMatches11.cs
- DispatcherOperation.cs
- FlowDocumentReaderAutomationPeer.cs
- PropertyConverter.cs
- LineBreak.cs
- ScrollBar.cs
- HyperLinkColumn.cs
- VideoDrawing.cs
- Rect3DValueSerializer.cs
- SafeProcessHandle.cs
- UpdateManifestForBrowserApplication.cs
- MeshGeometry3D.cs
- PrimitiveDataContract.cs
- BitHelper.cs
- MetadataUtil.cs
- CannotUnloadAppDomainException.cs
- Vector.cs
- storepermission.cs
- HttpRawResponse.cs
- ConfigurationManagerInternalFactory.cs
- WebPartMenu.cs
- ThreadStartException.cs
- ErrorWebPart.cs
- _FtpDataStream.cs
- ListBoxChrome.cs
- MethodBody.cs
- RequestUriProcessor.cs
- CapabilitiesPattern.cs
- Bidi.cs
- GlobalizationAssembly.cs
- DataGridViewLinkColumn.cs
- RequestQueryParser.cs
- XmlLanguage.cs
- RowUpdatedEventArgs.cs
- TransportChannelListener.cs
- SafeEventLogWriteHandle.cs
- AnnouncementEventArgs.cs
- VectorCollectionValueSerializer.cs
- EnvelopedPkcs7.cs
- XmlSchemaDatatype.cs
- TrackingAnnotationCollection.cs
- XmlSchemaNotation.cs
- AnnotationResource.cs
- QEncodedStream.cs
- List.cs
- DataListComponentEditor.cs
- ReferentialConstraint.cs
- DataGridCell.cs
- ConsoleCancelEventArgs.cs
- RegisteredScript.cs
- FixUpCollection.cs
- ComponentGlyph.cs
- SmiEventSink_Default.cs
- ImageSource.cs
- SafeNativeMemoryHandle.cs
- DbCommandDefinition.cs
- returneventsaver.cs
- WindowsSecurityToken.cs
- ExpanderAutomationPeer.cs
- NoneExcludedImageIndexConverter.cs
- XmlSecureResolver.cs
- TextReader.cs
- ProviderException.cs
- NamedPermissionSet.cs
- CallSite.cs
- UrlMappingsModule.cs
- SplitterPanel.cs
- KnownTypes.cs