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
- WorkflowMarkupSerializationException.cs
- SplitterCancelEvent.cs
- wmiprovider.cs
- EntityDataSourceDataSelection.cs
- ObjectConverter.cs
- ServiceOperationInvoker.cs
- ConfigsHelper.cs
- RankException.cs
- ExtensionFile.cs
- DataRecordObjectView.cs
- SafeNativeMethods.cs
- PermissionToken.cs
- InvalidCastException.cs
- InvalidWMPVersionException.cs
- OdbcFactory.cs
- XmlRootAttribute.cs
- SpeakProgressEventArgs.cs
- DoWorkEventArgs.cs
- TableDetailsCollection.cs
- BitmapEffectInputData.cs
- DataSourceXmlSerializer.cs
- itemelement.cs
- Span.cs
- HitTestResult.cs
- Compilation.cs
- Style.cs
- StringExpressionSet.cs
- RemotingException.cs
- CompilerError.cs
- SQLBytes.cs
- Brushes.cs
- SafeEventLogWriteHandle.cs
- CustomAttributeBuilder.cs
- DataFormats.cs
- PlanCompilerUtil.cs
- IListConverters.cs
- ImageMap.cs
- SynchronizingStream.cs
- OleDbParameterCollection.cs
- BindingExpressionUncommonField.cs
- CompiledAction.cs
- Color.cs
- EnterpriseServicesHelper.cs
- XmlnsDefinitionAttribute.cs
- UrlPath.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ProtocolViolationException.cs
- ClaimTypeElement.cs
- DescendantBaseQuery.cs
- ExtensionQuery.cs
- querybuilder.cs
- BlockUIContainer.cs
- NotifyParentPropertyAttribute.cs
- ProcessInputEventArgs.cs
- Size3DValueSerializer.cs
- FunctionQuery.cs
- CommandField.cs
- DiscriminatorMap.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- loginstatus.cs
- ClientSettingsProvider.cs
- OdbcCommandBuilder.cs
- InProcStateClientManager.cs
- MembershipUser.cs
- PropertyBuilder.cs
- RegisteredScript.cs
- ControlType.cs
- DbMetaDataColumnNames.cs
- ResourceContainer.cs
- QueryPageSettingsEventArgs.cs
- AppSettingsExpressionBuilder.cs
- CodeArrayCreateExpression.cs
- RayMeshGeometry3DHitTestResult.cs
- XPathConvert.cs
- SuppressMergeCheckAttribute.cs
- DrawingState.cs
- SqlParameterCollection.cs
- XmlBufferedByteStreamReader.cs
- DbConnectionPoolIdentity.cs
- ToolStripStatusLabel.cs
- RegionData.cs
- EventHandlersDesigner.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- MethodRental.cs
- BaseCAMarshaler.cs
- RuntimeEnvironment.cs
- ProcessInfo.cs
- DataServiceQuery.cs
- DropShadowBitmapEffect.cs
- Vector3DAnimationUsingKeyFrames.cs
- Int16Converter.cs
- ViewBase.cs
- SqlClientMetaDataCollectionNames.cs
- StreamGeometry.cs
- SmuggledIUnknown.cs
- MarkupCompiler.cs
- FloatSumAggregationOperator.cs
- ElementAction.cs
- Page.cs
- UnmanagedMarshal.cs