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
- Util.cs
- unsafenativemethodstextservices.cs
- InputLangChangeEvent.cs
- SqlBulkCopyColumnMappingCollection.cs
- Command.cs
- CodeValidator.cs
- SourceChangedEventArgs.cs
- CompositionTarget.cs
- CopyNodeSetAction.cs
- WebPartConnectionsConfigureVerb.cs
- UInt64Converter.cs
- MenuScrollingVisibilityConverter.cs
- ping.cs
- DesignTimeType.cs
- CssStyleCollection.cs
- OSFeature.cs
- EntityProviderServices.cs
- ObjectMaterializedEventArgs.cs
- XmlUTF8TextReader.cs
- WindowsMenu.cs
- RowSpanVector.cs
- LightweightCodeGenerator.cs
- TraceXPathNavigator.cs
- SqlError.cs
- SQLSingle.cs
- _IPv4Address.cs
- EventProxy.cs
- WpfGeneratedKnownProperties.cs
- ExtenderProvidedPropertyAttribute.cs
- BitmapEffectInput.cs
- QueueProcessor.cs
- HtmlElementErrorEventArgs.cs
- CssStyleCollection.cs
- WebPartsPersonalizationAuthorization.cs
- HandlerWithFactory.cs
- LineServices.cs
- Profiler.cs
- StateChangeEvent.cs
- JsonFaultDetail.cs
- LocalValueEnumerator.cs
- BamlTreeUpdater.cs
- DictionaryEntry.cs
- ListMarkerLine.cs
- StorageScalarPropertyMapping.cs
- ProtectedConfigurationSection.cs
- SqlClientMetaDataCollectionNames.cs
- QueuePathEditor.cs
- RadioButtonBaseAdapter.cs
- DummyDataSource.cs
- QilVisitor.cs
- WindowsPrincipal.cs
- UnitySerializationHolder.cs
- DetailsViewInsertEventArgs.cs
- HttpConfigurationSystem.cs
- SpecialNameAttribute.cs
- unsafeIndexingFilterStream.cs
- Cursor.cs
- COM2IDispatchConverter.cs
- ComplexType.cs
- XAMLParseException.cs
- InfoCardTraceRecord.cs
- StylusPlugInCollection.cs
- UrlMappingsSection.cs
- ControlDesigner.cs
- FontDriver.cs
- XPathDocumentBuilder.cs
- GradientStop.cs
- LocalTransaction.cs
- WebBrowserNavigatingEventHandler.cs
- CommandBinding.cs
- GeneralTransform2DTo3DTo2D.cs
- CLSCompliantAttribute.cs
- ConfigurationProperty.cs
- EditorBrowsableAttribute.cs
- ConfigurationProperty.cs
- ForceCopyBuildProvider.cs
- TextRunCache.cs
- UnhandledExceptionEventArgs.cs
- HandlerMappingMemo.cs
- ManagementPath.cs
- _NtlmClient.cs
- ChannelServices.cs
- PolyQuadraticBezierSegment.cs
- COM2Enum.cs
- VisualBrush.cs
- SwitchCase.cs
- ListComponentEditor.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- RelatedCurrencyManager.cs
- PaperSource.cs
- WebPart.cs
- Barrier.cs
- CommonObjectSecurity.cs
- DispatcherEventArgs.cs
- ObservableDictionary.cs
- InternalDuplexChannelListener.cs
- EntityDataSourceState.cs
- ConnectionStringSettingsCollection.cs
- StylesEditorDialog.cs
- ScrollableControl.cs