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
- DesigntimeLicenseContextSerializer.cs
- XPathNode.cs
- LayoutEngine.cs
- CustomWebEventKey.cs
- DataExpression.cs
- Types.cs
- PathTooLongException.cs
- ConfigDefinitionUpdates.cs
- OleStrCAMarshaler.cs
- DefaultAsyncDataDispatcher.cs
- WsdlInspector.cs
- DbParameterCollectionHelper.cs
- PersonalizationState.cs
- XmlSerializerFactory.cs
- HostingEnvironmentWrapper.cs
- DataFormats.cs
- RemotingClientProxy.cs
- HebrewCalendar.cs
- DescendantOverDescendantQuery.cs
- NavigationExpr.cs
- ListComponentEditor.cs
- XmlSchemaSimpleTypeRestriction.cs
- NamedObject.cs
- MouseActionValueSerializer.cs
- PrivacyNoticeBindingElement.cs
- TerminatorSinks.cs
- EventMemberCodeDomSerializer.cs
- RegexRunner.cs
- BezierSegment.cs
- CultureSpecificStringDictionary.cs
- Lazy.cs
- TrackingStringDictionary.cs
- WorkflowTransactionOptions.cs
- HtmlHead.cs
- MissingFieldException.cs
- ChangePasswordAutoFormat.cs
- RoutingTable.cs
- HttpPostedFile.cs
- TransactionFlowBindingElement.cs
- ParserContext.cs
- DataStorage.cs
- HtmlTitle.cs
- EntityDataSourceUtil.cs
- LocatorManager.cs
- BinaryObjectInfo.cs
- DynamicResourceExtension.cs
- SqlConnectionString.cs
- XmlMembersMapping.cs
- SequentialOutput.cs
- BulletChrome.cs
- FunctionDetailsReader.cs
- GeometryDrawing.cs
- safelinkcollection.cs
- AnnotationObservableCollection.cs
- CollectionMarkupSerializer.cs
- PointConverter.cs
- WCFModelStrings.Designer.cs
- SoapObjectWriter.cs
- ModuleBuilderData.cs
- AuthenticationModeHelper.cs
- ConfigurationFileMap.cs
- OSFeature.cs
- ButtonBase.cs
- UnmanagedMarshal.cs
- _NTAuthentication.cs
- PhysicalOps.cs
- VisualTarget.cs
- SqlUserDefinedAggregateAttribute.cs
- CompositeActivityTypeDescriptorProvider.cs
- RemoteHelper.cs
- SizeFConverter.cs
- DataGridItemEventArgs.cs
- HandlerFactoryCache.cs
- AtomServiceDocumentSerializer.cs
- TypeBuilder.cs
- CharAnimationBase.cs
- RecognitionEventArgs.cs
- FunctionQuery.cs
- DropShadowBitmapEffect.cs
- NamespaceEmitter.cs
- Rotation3DAnimationUsingKeyFrames.cs
- PersonalizationDictionary.cs
- QilNode.cs
- _ListenerRequestStream.cs
- OAVariantLib.cs
- SafeTimerHandle.cs
- Light.cs
- CannotUnloadAppDomainException.cs
- EntitySetBaseCollection.cs
- StringUtil.cs
- DataSvcMapFile.cs
- PropertyConverter.cs
- CodeGotoStatement.cs
- WebPartEventArgs.cs
- DataTableNewRowEvent.cs
- updateconfighost.cs
- RelationshipEntry.cs
- LoadedOrUnloadedOperation.cs
- Stack.cs
- ClientBuildManagerCallback.cs