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
- PropertyMapper.cs
- TextEffect.cs
- TextServicesHost.cs
- ModelChangedEventArgsImpl.cs
- arabicshape.cs
- ControlCollection.cs
- MatrixUtil.cs
- TextServicesManager.cs
- DataRelation.cs
- TransportBindingElement.cs
- SqlStream.cs
- WebEventCodes.cs
- EventListenerClientSide.cs
- safex509handles.cs
- NumberFunctions.cs
- IListConverters.cs
- PointLightBase.cs
- Drawing.cs
- WebPartZoneDesigner.cs
- Variable.cs
- DPCustomTypeDescriptor.cs
- Scene3D.cs
- MachineSettingsSection.cs
- WizardForm.cs
- ConnectionStringSettings.cs
- MediaPlayer.cs
- MenuItemCollection.cs
- ButtonBaseDesigner.cs
- BaseTreeIterator.cs
- TemplateLookupAction.cs
- SmiEventSink.cs
- PagedDataSource.cs
- GridViewPageEventArgs.cs
- DefaultAssemblyResolver.cs
- XmlSerializerAssemblyAttribute.cs
- RowBinding.cs
- PathSegment.cs
- TableAutomationPeer.cs
- AutoSizeToolBoxItem.cs
- TimeoutException.cs
- storepermission.cs
- MetadataExchangeBindings.cs
- DbParameterCollectionHelper.cs
- TreeNodeClickEventArgs.cs
- DataGridColumn.cs
- ApplicationId.cs
- PageEventArgs.cs
- PropertyValueUIItem.cs
- XmlIlTypeHelper.cs
- oledbmetadatacollectionnames.cs
- PersistChildrenAttribute.cs
- DiagnosticsConfiguration.cs
- ListViewInsertEventArgs.cs
- OneOfElement.cs
- ArrayConverter.cs
- DockingAttribute.cs
- TreePrinter.cs
- GeneralTransform3D.cs
- ResourceSetExpression.cs
- AutomationPattern.cs
- SchemaExporter.cs
- IndexedWhereQueryOperator.cs
- ImageConverter.cs
- StringBuilder.cs
- TabControlCancelEvent.cs
- SmtpClient.cs
- DataGridSortCommandEventArgs.cs
- ChtmlLinkAdapter.cs
- TdsParserSessionPool.cs
- WebConfigurationHostFileChange.cs
- ClassicBorderDecorator.cs
- HybridWebProxyFinder.cs
- Normalization.cs
- WhileDesigner.xaml.cs
- LinkClickEvent.cs
- TableCell.cs
- IdSpace.cs
- BufferModeSettings.cs
- RecoverInstanceLocksCommand.cs
- ServiceCredentialsElement.cs
- PointConverter.cs
- EntityCommandDefinition.cs
- DataServiceBehavior.cs
- IndexedGlyphRun.cs
- HttpCapabilitiesSectionHandler.cs
- ToolStripManager.cs
- XsdDataContractImporter.cs
- Rectangle.cs
- ListViewTableCell.cs
- CompiledELinqQueryState.cs
- PageAsyncTaskManager.cs
- SystemInfo.cs
- StoryFragments.cs
- DirectoryRedirect.cs
- ContentElementAutomationPeer.cs
- PersonalizationStateQuery.cs
- ConfigurationSection.cs
- DocumentEventArgs.cs
- AnnotationResourceCollection.cs
- SmtpSection.cs