Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ComplexBindingPropertiesAttribute.cs / 1305376 / ComplexBindingPropertiesAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class ComplexBindingPropertiesAttribute : Attribute { private readonly string dataSource; private readonly string dataMember; ///Specifies the data source and data member properties for a component. ////// public ComplexBindingPropertiesAttribute() { this.dataSource = null; this.dataMember = null; } ////// Initializes a new instance of /// the ///class. /// /// public ComplexBindingPropertiesAttribute(string dataSource) { this.dataSource = dataSource; this.dataMember = null; } ////// Initializes a new instance of /// the ///class. /// /// public ComplexBindingPropertiesAttribute(string dataSource, string dataMember) { this.dataSource = dataSource; this.dataMember = dataMember; } ////// Initializes a new instance of /// the ///class. /// /// public string DataSource { get { return dataSource; } } ////// Gets the name of the data source property for the component this attribute is /// bound to. /// ////// public string DataMember { get { return dataMember; } } ////// Gets the name of the data member property for the component this attribute is /// bound to. /// ////// public static readonly ComplexBindingPropertiesAttribute Default = new ComplexBindingPropertiesAttribute(); public override bool Equals(object obj) { ComplexBindingPropertiesAttribute other = obj as ComplexBindingPropertiesAttribute; return other != null && other.DataSource == dataSource && other.DataMember == dataMember; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Specifies the default value for the ///, which is . This /// field is read-only. /// // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class ComplexBindingPropertiesAttribute : Attribute { private readonly string dataSource; private readonly string dataMember; ///Specifies the data source and data member properties for a component. ////// public ComplexBindingPropertiesAttribute() { this.dataSource = null; this.dataMember = null; } ////// Initializes a new instance of /// the ///class. /// /// public ComplexBindingPropertiesAttribute(string dataSource) { this.dataSource = dataSource; this.dataMember = null; } ////// Initializes a new instance of /// the ///class. /// /// public ComplexBindingPropertiesAttribute(string dataSource, string dataMember) { this.dataSource = dataSource; this.dataMember = dataMember; } ////// Initializes a new instance of /// the ///class. /// /// public string DataSource { get { return dataSource; } } ////// Gets the name of the data source property for the component this attribute is /// bound to. /// ////// public string DataMember { get { return dataMember; } } ////// Gets the name of the data member property for the component this attribute is /// bound to. /// ////// public static readonly ComplexBindingPropertiesAttribute Default = new ComplexBindingPropertiesAttribute(); public override bool Equals(object obj) { ComplexBindingPropertiesAttribute other = obj as ComplexBindingPropertiesAttribute; return other != null && other.DataSource == dataSource && other.DataMember == dataMember; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Specifies the default value for the ///, which is . This /// field is read-only. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Choices.cs
- ListBox.cs
- FixedLineResult.cs
- filewebrequest.cs
- XmlDataSource.cs
- _SSPISessionCache.cs
- ResolveMatchesMessageCD1.cs
- PackWebResponse.cs
- DataSourceControl.cs
- EncryptedXml.cs
- VisualBrush.cs
- PrintDialog.cs
- BitmapEffectRenderDataResource.cs
- MachineKeyValidationConverter.cs
- StructureChangedEventArgs.cs
- ToolStripGrip.cs
- ContentWrapperAttribute.cs
- ProcessInputEventArgs.cs
- XmlWrappingReader.cs
- altserialization.cs
- ExpressionPrefixAttribute.cs
- DBConnectionString.cs
- UInt16Converter.cs
- XmlSchemaAny.cs
- BroadcastEventHelper.cs
- SpeechEvent.cs
- ParamArrayAttribute.cs
- ResourceAttributes.cs
- Comparer.cs
- CacheSection.cs
- ItemContainerProviderWrapper.cs
- odbcmetadatacollectionnames.cs
- BitmapSizeOptions.cs
- PaperSize.cs
- ObjectManager.cs
- ExecutionContext.cs
- InkCanvasSelection.cs
- StateMachineSubscriptionManager.cs
- DesignerAttribute.cs
- Types.cs
- DoubleAnimationUsingKeyFrames.cs
- GetWinFXPath.cs
- SafeEventLogWriteHandle.cs
- InheritablePropertyChangeInfo.cs
- relpropertyhelper.cs
- SecureUICommand.cs
- QilReplaceVisitor.cs
- MarkupCompiler.cs
- CalendarTable.cs
- ClientCultureInfo.cs
- XmlTypeAttribute.cs
- WebPartChrome.cs
- ExplicitDiscriminatorMap.cs
- TemplateComponentConnector.cs
- RectAnimationUsingKeyFrames.cs
- SamlConstants.cs
- RegexRunnerFactory.cs
- Image.cs
- ReturnValue.cs
- AnnouncementEndpoint.cs
- Math.cs
- SchemaConstraints.cs
- QuadraticBezierSegment.cs
- Win32PrintDialog.cs
- WeakRefEnumerator.cs
- RenamedEventArgs.cs
- LocationUpdates.cs
- DropDownList.cs
- CultureInfo.cs
- VirtualDirectoryMapping.cs
- ParameterModifier.cs
- DataGridViewColumnCollectionDialog.cs
- ListViewGroupConverter.cs
- X509ChainPolicy.cs
- FontStyleConverter.cs
- XmlResolver.cs
- DataKeyArray.cs
- DependencyObjectType.cs
- EtwProvider.cs
- ListViewEditEventArgs.cs
- DependencyPropertyAttribute.cs
- NestedContainer.cs
- MessageBox.cs
- ObjectReferenceStack.cs
- ArgumentNullException.cs
- HttpPostedFileBase.cs
- ItemAutomationPeer.cs
- PersonalizationStateInfo.cs
- StartFileNameEditor.cs
- DoubleAnimationClockResource.cs
- HttpHandlerAction.cs
- CodeActivity.cs
- ExponentialEase.cs
- TextAdaptor.cs
- BackStopAuthenticationModule.cs
- SplineKeyFrames.cs
- IImplicitResourceProvider.cs
- DataControlImageButton.cs
- TransactedBatchingElement.cs
- SurrogateDataContract.cs