Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / ComplexBindingPropertiesAttribute.cs / 1 / 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
- UrlMapping.cs
- ToolConsole.cs
- ResXResourceReader.cs
- COM2FontConverter.cs
- SignatureDescription.cs
- ObjectItemLoadingSessionData.cs
- GlyphRun.cs
- ListDesigner.cs
- XmlILOptimizerVisitor.cs
- HttpRuntimeSection.cs
- BuildProvider.cs
- LinearKeyFrames.cs
- PopupEventArgs.cs
- RtfFormatStack.cs
- MessageQueuePermissionEntry.cs
- ToolStripContextMenu.cs
- XmlSchemaComplexType.cs
- BuildProviderUtils.cs
- X509CertificateChain.cs
- WebPartCatalogCloseVerb.cs
- dbdatarecord.cs
- BehaviorEditorPart.cs
- SymbolEqualComparer.cs
- InfoCardConstants.cs
- FileSystemInfo.cs
- BeginEvent.cs
- BackgroundWorker.cs
- ImageAnimator.cs
- DebugView.cs
- ScrollProperties.cs
- ProgressBarRenderer.cs
- ClientConfigPaths.cs
- StructuralComparisons.cs
- RoleService.cs
- CloudCollection.cs
- StrokeCollectionDefaultValueFactory.cs
- RawStylusInputCustomDataList.cs
- AutomationPropertyInfo.cs
- KeyTime.cs
- ConfigurationErrorsException.cs
- ProviderSettings.cs
- SystemMulticastIPAddressInformation.cs
- TemplateBuilder.cs
- TabItemAutomationPeer.cs
- BitmapImage.cs
- NegatedConstant.cs
- EntityObject.cs
- ValidationErrorCollection.cs
- KeyGesture.cs
- UserMapPath.cs
- TableLayoutCellPaintEventArgs.cs
- DesignerDataParameter.cs
- XPathCompileException.cs
- ApplicationFileParser.cs
- EventRoute.cs
- BasicCellRelation.cs
- CodeConditionStatement.cs
- ConnectionManagementElement.cs
- Binding.cs
- SqlDataReaderSmi.cs
- ArraySegment.cs
- RoutedEventValueSerializer.cs
- OrderablePartitioner.cs
- CompiledELinqQueryState.cs
- MsmqInputSessionChannelListener.cs
- FrameworkRichTextComposition.cs
- COAUTHIDENTITY.cs
- ElementNotAvailableException.cs
- Misc.cs
- Schema.cs
- _LocalDataStore.cs
- PageHandlerFactory.cs
- ValidatingReaderNodeData.cs
- PeerNameRegistration.cs
- CacheVirtualItemsEvent.cs
- ContainerControlDesigner.cs
- CdpEqualityComparer.cs
- ExpressionList.cs
- TextServicesContext.cs
- Activator.cs
- SessionStateModule.cs
- ExtendedPropertyDescriptor.cs
- DataGridViewRowsRemovedEventArgs.cs
- UserControlDocumentDesigner.cs
- LinkLabel.cs
- TextRangeEditTables.cs
- Cursor.cs
- Int32Converter.cs
- WebProxyScriptElement.cs
- RedirectionProxy.cs
- SafeBitVector32.cs
- CipherData.cs
- IdleTimeoutMonitor.cs
- PropertyItemInternal.cs
- WebPartsSection.cs
- SecurityPolicyVersion.cs
- RtType.cs
- ProtectedProviderSettings.cs
- CharacterMetricsDictionary.cs
- ZipIOCentralDirectoryFileHeader.cs