Code:
/ FX-1434 / FX-1434 / 1.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
- PixelFormats.cs
- TransformCollection.cs
- EpmHelper.cs
- EnterpriseServicesHelper.cs
- CngAlgorithmGroup.cs
- UserMapPath.cs
- UserControlParser.cs
- EncryptedXml.cs
- CodeSubDirectory.cs
- SliderAutomationPeer.cs
- InstancePersistenceException.cs
- InputBinding.cs
- AmbiguousMatchException.cs
- IconConverter.cs
- TablePattern.cs
- PerformanceCounterCategory.cs
- ColorTransform.cs
- WebPartZone.cs
- ExceptionUtil.cs
- BindingExpression.cs
- MappingSource.cs
- ToolboxBitmapAttribute.cs
- FuncCompletionCallbackWrapper.cs
- DBConnectionString.cs
- NativeMethodsCLR.cs
- WebZone.cs
- Symbol.cs
- XmlAttributeCache.cs
- RoleManagerEventArgs.cs
- metrodevice.cs
- OLEDB_Enum.cs
- DataServiceKeyAttribute.cs
- SspiNegotiationTokenAuthenticatorState.cs
- DataGridRow.cs
- SingleObjectCollection.cs
- NamedPipeTransportSecurityElement.cs
- MetadataArtifactLoaderFile.cs
- UpdateTranslator.cs
- DetailsViewRowCollection.cs
- IBuiltInEvidence.cs
- PtsHelper.cs
- BrowserTree.cs
- DesignParameter.cs
- TabRenderer.cs
- SafeNativeMethods.cs
- CacheMemory.cs
- Control.cs
- PageParserFilter.cs
- _HeaderInfo.cs
- HtmlAnchor.cs
- SoapReflectionImporter.cs
- ToolStripDropDownButton.cs
- HttpListenerException.cs
- PublisherMembershipCondition.cs
- SkewTransform.cs
- PhysicalAddress.cs
- ButtonBase.cs
- Monitor.cs
- XmlRawWriter.cs
- ProviderUtil.cs
- UriWriter.cs
- AssociationTypeEmitter.cs
- HexParser.cs
- DispatcherSynchronizationContext.cs
- Activity.cs
- EventProviderWriter.cs
- WebSysDescriptionAttribute.cs
- DirectoryRedirect.cs
- IProvider.cs
- Transform3D.cs
- TableCellAutomationPeer.cs
- DelegatingHeader.cs
- UntrustedRecipientException.cs
- TextLineBreak.cs
- RewritingProcessor.cs
- StylusCollection.cs
- SqlMethods.cs
- TraceSwitch.cs
- TimeSpanConverter.cs
- JsonWriter.cs
- DeferredBinaryDeserializerExtension.cs
- HebrewCalendar.cs
- GridViewColumnHeader.cs
- SqlConnectionString.cs
- InsufficientMemoryException.cs
- CheckBoxList.cs
- ScriptRegistrationManager.cs
- MemberMaps.cs
- ScriptReference.cs
- ErrorLog.cs
- CompositeActivityTypeDescriptorProvider.cs
- HttpCookiesSection.cs
- TextElement.cs
- MultilineStringEditor.cs
- RegexCaptureCollection.cs
- SvcFileManager.cs
- ImageSourceConverter.cs
- StrongNameIdentityPermission.cs
- VisualBasicSettingsConverter.cs
- TrackingQueryElement.cs