Code:
/ DotNET / DotNET / 8.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
- ComplexBindingPropertiesAttribute.cs
- DbParameterCollection.cs
- ChannelDispatcherCollection.cs
- DataColumn.cs
- FormatterConverter.cs
- MsmqIntegrationBindingElement.cs
- IgnoreSection.cs
- WebPartCancelEventArgs.cs
- SchemaComplexType.cs
- AbsoluteQuery.cs
- RequiredFieldValidator.cs
- ListViewItemMouseHoverEvent.cs
- ApplicationBuildProvider.cs
- DrawingState.cs
- M3DUtil.cs
- ExpressionHelper.cs
- MappingSource.cs
- DataMisalignedException.cs
- SmtpException.cs
- InfoCardBaseException.cs
- XPathArrayIterator.cs
- ConstructorBuilder.cs
- ToolboxBitmapAttribute.cs
- MappingItemCollection.cs
- OdbcFactory.cs
- AttributeCollection.cs
- WebPartEventArgs.cs
- WebPartCloseVerb.cs
- XPathNavigatorException.cs
- BookmarkScopeManager.cs
- ObjectConverter.cs
- LocalIdKeyIdentifierClause.cs
- SqlMetaData.cs
- UpdateException.cs
- ControlCachePolicy.cs
- SwitchAttribute.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ServerIdentity.cs
- Listbox.cs
- RoleGroupCollectionEditor.cs
- SelectingProviderEventArgs.cs
- XmlSchemaValidationException.cs
- ColorConvertedBitmapExtension.cs
- HMACSHA384.cs
- CollectionContainer.cs
- TimeZone.cs
- CollectionViewGroup.cs
- AnnotationMap.cs
- ConfigXmlElement.cs
- DirectoryInfo.cs
- EncodingNLS.cs
- SplitterCancelEvent.cs
- ImageSource.cs
- Pts.cs
- SourceElementsCollection.cs
- EntityDataSourceContextCreatedEventArgs.cs
- DataBoundLiteralControl.cs
- SecurityHelper.cs
- MenuItem.cs
- ConfigurationProperty.cs
- DESCryptoServiceProvider.cs
- SR.cs
- SplitterCancelEvent.cs
- LinqDataView.cs
- GroupDescription.cs
- WorkflowMarkupSerializerMapping.cs
- PrePrepareMethodAttribute.cs
- PropertyEmitterBase.cs
- TransactionChannelFaultConverter.cs
- ReferenceTypeElement.cs
- PeerResolverElement.cs
- Claim.cs
- CallContext.cs
- TrustManagerPromptUI.cs
- RayHitTestParameters.cs
- ToolStripPanel.cs
- PixelFormats.cs
- RouteParameter.cs
- Control.cs
- Timer.cs
- TokenBasedSetEnumerator.cs
- SourceFileBuildProvider.cs
- GetPageCompletedEventArgs.cs
- InitializerFacet.cs
- ExpressionWriter.cs
- ObsoleteAttribute.cs
- SchemaImporterExtensionsSection.cs
- XamlToRtfWriter.cs
- VScrollProperties.cs
- Statements.cs
- SignatureHelper.cs
- FrameworkTemplate.cs
- XmlSchemaGroupRef.cs
- PopupControlService.cs
- MethodBody.cs
- XmlSchemaComplexContentRestriction.cs
- ReferenceSchema.cs
- XmlChildNodes.cs
- StartFileNameEditor.cs
- FileChangeNotifier.cs