Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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
- MulticastDelegate.cs
- ProcessDesigner.cs
- cookie.cs
- RC2CryptoServiceProvider.cs
- ItemChangedEventArgs.cs
- LinqDataSourceContextEventArgs.cs
- RenderData.cs
- AutomationElementIdentifiers.cs
- DataGridViewRowPostPaintEventArgs.cs
- UIInitializationException.cs
- ImageDrawing.cs
- SqlFileStream.cs
- Frame.cs
- Vector3dCollection.cs
- SpellerError.cs
- SelectedCellsCollection.cs
- LicenseManager.cs
- FileChangeNotifier.cs
- ViewManagerAttribute.cs
- RoutingBehavior.cs
- ServiceReference.cs
- Header.cs
- Monitor.cs
- CachedPathData.cs
- GridViewSelectEventArgs.cs
- SelectedGridItemChangedEvent.cs
- SimpleApplicationHost.cs
- CheckBoxPopupAdapter.cs
- MetadataHelper.cs
- NativeMethods.cs
- WebPartDeleteVerb.cs
- ActivityBindForm.Designer.cs
- IDReferencePropertyAttribute.cs
- PathFigureCollection.cs
- MarkupObject.cs
- Tile.cs
- BooleanStorage.cs
- RuntimeArgument.cs
- DesignerDataSchemaClass.cs
- XpsPackagingPolicy.cs
- DecoderBestFitFallback.cs
- AsnEncodedData.cs
- securitymgrsite.cs
- RecognizedAudio.cs
- log.cs
- KerberosRequestorSecurityToken.cs
- ColorAnimation.cs
- WinInet.cs
- StorageEntityContainerMapping.cs
- PageCatalogPart.cs
- SoapIgnoreAttribute.cs
- ButtonAutomationPeer.cs
- DataTableMapping.cs
- BookmarkScopeInfo.cs
- VectorCollectionValueSerializer.cs
- CellParagraph.cs
- MouseGestureValueSerializer.cs
- StylusPoint.cs
- DataGrid.cs
- DataGridViewColumnHeaderCell.cs
- DecoderFallbackWithFailureFlag.cs
- ApplicationTrust.cs
- ConfigurationManagerHelper.cs
- AttributeCollection.cs
- MediaCommands.cs
- CheckBoxPopupAdapter.cs
- SafeFileMappingHandle.cs
- EntityPropertyMappingAttribute.cs
- ReadOnlyDataSourceView.cs
- NonBatchDirectoryCompiler.cs
- AdRotator.cs
- CalendarBlackoutDatesCollection.cs
- XmlParserContext.cs
- RenderOptions.cs
- DataGridRow.cs
- TextPenaltyModule.cs
- Light.cs
- GridViewColumnCollectionChangedEventArgs.cs
- DependencyProperty.cs
- HtmlTableCell.cs
- DataColumnChangeEvent.cs
- ExternalFile.cs
- MutexSecurity.cs
- RangeValidator.cs
- CookieParameter.cs
- WebMessageEncodingBindingElement.cs
- UrlMapping.cs
- StreamAsIStream.cs
- FrameworkContextData.cs
- FormViewInsertedEventArgs.cs
- PackageRelationshipCollection.cs
- XmlCountingReader.cs
- NamedObject.cs
- HtmlFormAdapter.cs
- RemoteDebugger.cs
- DataGrid.cs
- MenuItemBindingCollection.cs
- QueryExecutionOption.cs
- TdsEnums.cs
- ConstraintStruct.cs