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
- TableLayoutSettings.cs
- SynchronizationHandlesCodeDomSerializer.cs
- CSharpCodeProvider.cs
- PopupRootAutomationPeer.cs
- EdmToObjectNamespaceMap.cs
- ConfigUtil.cs
- ExpressionBuilder.cs
- CompoundFileStorageReference.cs
- DbModificationCommandTree.cs
- ConvertersCollection.cs
- XmlSchemaSimpleTypeList.cs
- RecognizedWordUnit.cs
- SemanticKeyElement.cs
- XmlEventCache.cs
- TextLineResult.cs
- WmiEventSink.cs
- PageRequestManager.cs
- ReturnEventArgs.cs
- HostedImpersonationContext.cs
- DataGridViewTextBoxCell.cs
- bidPrivateBase.cs
- Misc.cs
- ClientSession.cs
- TimerTable.cs
- SafeReadContext.cs
- SEHException.cs
- IEnumerable.cs
- FixedSOMImage.cs
- ConfigPathUtility.cs
- TransactionChannelFactory.cs
- DependencyPropertyKind.cs
- WebHttpSecurityElement.cs
- FieldValue.cs
- _FtpDataStream.cs
- UnaryNode.cs
- HtmlSelect.cs
- FixedSchema.cs
- AspNetSynchronizationContext.cs
- SqlCacheDependency.cs
- BackgroundWorker.cs
- CodeBlockBuilder.cs
- HttpClientCertificate.cs
- RestClientProxyHandler.cs
- WindowProviderWrapper.cs
- BindingCollection.cs
- ExternalFile.cs
- StyleCollectionEditor.cs
- JsonWriter.cs
- SafeThreadHandle.cs
- WebPartZoneCollection.cs
- NGCSerializationManagerAsync.cs
- FlowPosition.cs
- OleDbConnectionInternal.cs
- DispatcherExceptionFilterEventArgs.cs
- WebReference.cs
- EncoderReplacementFallback.cs
- ConsoleTraceListener.cs
- DocumentViewerConstants.cs
- SystemNetworkInterface.cs
- _ListenerAsyncResult.cs
- WindowsStatic.cs
- GroupBoxAutomationPeer.cs
- ShaderEffect.cs
- Decorator.cs
- DataGridViewBindingCompleteEventArgs.cs
- OdbcInfoMessageEvent.cs
- _emptywebproxy.cs
- DesignTimeData.cs
- oledbconnectionstring.cs
- BamlLocalizer.cs
- WebControl.cs
- CodeSnippetStatement.cs
- EditingMode.cs
- EntityObject.cs
- LinkDescriptor.cs
- DeploymentSection.cs
- ParentUndoUnit.cs
- MarkedHighlightComponent.cs
- IFlowDocumentViewer.cs
- StylusEventArgs.cs
- StylusPointPropertyUnit.cs
- ExpressionEditorSheet.cs
- X509Certificate.cs
- HtmlSelectionListAdapter.cs
- RegisteredArrayDeclaration.cs
- HandlerWithFactory.cs
- FileLoadException.cs
- DeclaredTypeValidatorAttribute.cs
- LockedBorderGlyph.cs
- Pkcs7Recipient.cs
- ClientUtils.cs
- WinCategoryAttribute.cs
- Attributes.cs
- Comparer.cs
- Error.cs
- ContextMenuStripGroup.cs
- Helpers.cs
- RangeValidator.cs
- CaseInsensitiveOrdinalStringComparer.cs
- UTF8Encoding.cs