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
- RemoteWebConfigurationHostServer.cs
- StorageTypeMapping.cs
- Token.cs
- URL.cs
- PackWebResponse.cs
- SymbolType.cs
- SequentialActivityDesigner.cs
- LocalizabilityAttribute.cs
- MutexSecurity.cs
- WindowsListViewItem.cs
- LinqDataSourceInsertEventArgs.cs
- TextSpanModifier.cs
- AnonymousIdentificationModule.cs
- TrackingProfileSerializer.cs
- DebugTraceHelper.cs
- Registry.cs
- LineUtil.cs
- RsaKeyIdentifierClause.cs
- ActivityBuilder.cs
- ObfuscationAttribute.cs
- EdmTypeAttribute.cs
- GPPOINT.cs
- RemotingException.cs
- BitStack.cs
- VisualCollection.cs
- CompilerHelpers.cs
- MembershipPasswordException.cs
- Viewport2DVisual3D.cs
- SynchronizationLockException.cs
- BamlResourceDeserializer.cs
- smtpconnection.cs
- documentsequencetextpointer.cs
- GenericTypeParameterBuilder.cs
- SqlGenerator.cs
- Panel.cs
- CommandTreeTypeHelper.cs
- BamlStream.cs
- TextEffectResolver.cs
- BuildResult.cs
- Compiler.cs
- LineServicesCallbacks.cs
- EntityCommandExecutionException.cs
- RankException.cs
- RelativeSource.cs
- DataGrid.cs
- CmsInterop.cs
- Rect3DValueSerializer.cs
- ConsoleCancelEventArgs.cs
- wgx_sdk_version.cs
- RoutedEventConverter.cs
- ProcessInfo.cs
- CachingHintValidation.cs
- MetadataItemEmitter.cs
- Buffer.cs
- UrlParameterWriter.cs
- MarkerProperties.cs
- AmbientValueAttribute.cs
- ListViewGroupItemCollection.cs
- TypeDescriptionProviderAttribute.cs
- DateTimeFormatInfoScanner.cs
- XmlReflectionImporter.cs
- CompositeActivityTypeDescriptor.cs
- MobileRedirect.cs
- EdmComplexPropertyAttribute.cs
- SemanticResolver.cs
- TextServicesHost.cs
- HttpCookiesSection.cs
- MethodBuilder.cs
- DesignSurfaceCollection.cs
- TraceSource.cs
- DrawingGroup.cs
- xmlfixedPageInfo.cs
- Update.cs
- MemberHolder.cs
- OleDbErrorCollection.cs
- InstanceLockQueryResult.cs
- SectionRecord.cs
- X500Name.cs
- ContextMenu.cs
- RouteTable.cs
- SID.cs
- BrowserTree.cs
- SAPICategories.cs
- WorkflowPrinting.cs
- NavigatorInput.cs
- X509ChainElement.cs
- SlotInfo.cs
- FlowchartStart.xaml.cs
- CorrelationQueryBehavior.cs
- PathFigureCollectionValueSerializer.cs
- SetterBaseCollection.cs
- TextViewSelectionProcessor.cs
- ProcessHostMapPath.cs
- ValidationException.cs
- AggregationMinMaxHelpers.cs
- EventLogEntryCollection.cs
- CheckoutException.cs
- XmlLinkedNode.cs
- DbMetaDataFactory.cs
- BypassElement.cs