Code:
/ FX-1434 / FX-1434 / 1.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
- DataBindingExpressionBuilder.cs
- FixedSOMTable.cs
- CultureSpecificCharacterBufferRange.cs
- EditorServiceContext.cs
- ProcessModuleCollection.cs
- ACE.cs
- NamedObject.cs
- EntryWrittenEventArgs.cs
- URLBuilder.cs
- ServicesSection.cs
- TextTreeFixupNode.cs
- SAPIEngineTypes.cs
- PersianCalendar.cs
- VisualStateChangedEventArgs.cs
- ClientConvert.cs
- ObjectAnimationUsingKeyFrames.cs
- Span.cs
- JapaneseLunisolarCalendar.cs
- WebPartEditorCancelVerb.cs
- NetworkStream.cs
- ClientScriptManagerWrapper.cs
- IOException.cs
- ITreeGenerator.cs
- DataControlCommands.cs
- ClientSettingsProvider.cs
- FactoryMaker.cs
- AuthenticatedStream.cs
- EnumConverter.cs
- WebPartConnectionCollection.cs
- ArrayMergeHelper.cs
- ProtectedConfigurationSection.cs
- DataDocumentXPathNavigator.cs
- GregorianCalendar.cs
- UnionCqlBlock.cs
- XmlNodeReader.cs
- Pen.cs
- UTF32Encoding.cs
- TrueReadOnlyCollection.cs
- IERequestCache.cs
- CustomExpressionEventArgs.cs
- LocationFactory.cs
- PenThread.cs
- CustomExpressionEventArgs.cs
- ACL.cs
- StoreContentChangedEventArgs.cs
- Restrictions.cs
- SqlGenericUtil.cs
- OpCodes.cs
- BaseDataList.cs
- WindowsFormsDesignerOptionService.cs
- WindowsClaimSet.cs
- SerializationSectionGroup.cs
- XmlName.cs
- IPEndPoint.cs
- RelatedView.cs
- RelationshipEndMember.cs
- AppSecurityManager.cs
- TransactedBatchContext.cs
- LoadedOrUnloadedOperation.cs
- CompilerErrorCollection.cs
- FreezableDefaultValueFactory.cs
- SemanticAnalyzer.cs
- RelationshipConverter.cs
- HandledEventArgs.cs
- XdrBuilder.cs
- DetailsViewAutoFormat.cs
- TreeNodeBindingCollection.cs
- ping.cs
- TcpStreams.cs
- URLMembershipCondition.cs
- ParserStreamGeometryContext.cs
- WebUtil.cs
- TemplateXamlParser.cs
- XmlSchemaGroup.cs
- BevelBitmapEffect.cs
- ConnectorMovedEventArgs.cs
- IntegerCollectionEditor.cs
- TypeBrowser.xaml.cs
- ToolStripPanelSelectionGlyph.cs
- LocalsItemDescription.cs
- CodeAssignStatement.cs
- ContractsBCL.cs
- ConfigurationSection.cs
- ForceCopyBuildProvider.cs
- ElementInit.cs
- PasswordDeriveBytes.cs
- GradientStop.cs
- X509ChainPolicy.cs
- ThrowOnMultipleAssignment.cs
- SafeLocalMemHandle.cs
- ObjectDataSource.cs
- SamlDoNotCacheCondition.cs
- _SecureChannel.cs
- InstanceKeyView.cs
- JobStaple.cs
- BuilderPropertyEntry.cs
- PenContext.cs
- CodeIdentifier.cs
- securitycriticaldataformultiplegetandset.cs
- TraceEventCache.cs