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
- EncodingTable.cs
- ComContractElementCollection.cs
- WriteableBitmap.cs
- LayoutUtils.cs
- BitmapEffectCollection.cs
- TaiwanCalendar.cs
- DiscoveryClientReferences.cs
- TimersDescriptionAttribute.cs
- Triplet.cs
- TextAutomationPeer.cs
- DeferrableContentConverter.cs
- ComponentChangedEvent.cs
- COM2AboutBoxPropertyDescriptor.cs
- StaticExtension.cs
- StackOverflowException.cs
- TypeLoadException.cs
- itemelement.cs
- cookiecontainer.cs
- PackageRelationshipCollection.cs
- WorkflowOperationFault.cs
- LockCookie.cs
- ApplicationFileParser.cs
- EventHandlerList.cs
- autovalidator.cs
- ProcessThreadCollection.cs
- DebuggerService.cs
- DockPatternIdentifiers.cs
- _StreamFramer.cs
- XmlSchemaAttribute.cs
- _TimerThread.cs
- SqlTypesSchemaImporter.cs
- ListViewDeletedEventArgs.cs
- TreeNodeSelectionProcessor.cs
- DataBoundLiteralControl.cs
- ComIntegrationManifestGenerator.cs
- BinarySerializer.cs
- ClientApiGenerator.cs
- PageContent.cs
- ToolStripControlHost.cs
- SecurityContextTokenCache.cs
- AlphabeticalEnumConverter.cs
- PointLightBase.cs
- HandlerFactoryWrapper.cs
- SqlDataAdapter.cs
- TemplateKeyConverter.cs
- Label.cs
- RealProxy.cs
- ResourcePermissionBase.cs
- XmlRawWriter.cs
- NamedPipeConnectionPoolSettings.cs
- InstanceDataCollection.cs
- Config.cs
- FieldNameLookup.cs
- DataQuery.cs
- SelectionRange.cs
- GPRECTF.cs
- SoapAttributeOverrides.cs
- CalendarDayButton.cs
- IODescriptionAttribute.cs
- BaseCodeDomTreeGenerator.cs
- bindurihelper.cs
- TimerElapsedEvenArgs.cs
- HttpClientCertificate.cs
- GraphicsContainer.cs
- SqlXml.cs
- SoapFaultCodes.cs
- URI.cs
- Char.cs
- PolyQuadraticBezierSegment.cs
- MediaContext.cs
- MatcherBuilder.cs
- LocationUpdates.cs
- EmbossBitmapEffect.cs
- ToolStripComboBox.cs
- AnnotationResource.cs
- TcpClientSocketManager.cs
- RotateTransform.cs
- SoapProtocolReflector.cs
- XmlChildEnumerator.cs
- ReferenceAssemblyAttribute.cs
- EllipticalNodeOperations.cs
- DocumentPageTextView.cs
- ProcessInfo.cs
- WebResponse.cs
- StandardCommands.cs
- ActiveXHost.cs
- ByteStream.cs
- MarkupWriter.cs
- RijndaelManaged.cs
- PersistenceTypeAttribute.cs
- DesignerUtils.cs
- HttpResponseInternalBase.cs
- ColorPalette.cs
- ViewStateException.cs
- FormsAuthenticationUser.cs
- Focus.cs
- BindingOperations.cs
- MarshalDirectiveException.cs
- XhtmlTextWriter.cs
- TextTreeExtractElementUndoUnit.cs