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
- FlowDocumentPage.cs
- WebServiceData.cs
- TraceProvider.cs
- StatusBar.cs
- baseshape.cs
- FocusManager.cs
- ValidationRuleCollection.cs
- Table.cs
- ObjectParameter.cs
- SystemWebExtensionsSectionGroup.cs
- FragmentQueryProcessor.cs
- Input.cs
- Helper.cs
- StateMachine.cs
- MultilineStringConverter.cs
- ScaleTransform3D.cs
- TimeEnumHelper.cs
- PeerApplication.cs
- PackageRelationshipSelector.cs
- ZipFileInfoCollection.cs
- Camera.cs
- TraceHelpers.cs
- Stack.cs
- VisualBasicExpressionConverter.cs
- AsyncWaitHandle.cs
- DbgUtil.cs
- SpanIndex.cs
- SoapIgnoreAttribute.cs
- ProviderUtil.cs
- SymmetricCryptoHandle.cs
- SafeCryptContextHandle.cs
- OleDbParameterCollection.cs
- HtmlAnchor.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- HostingEnvironmentSection.cs
- WebPartDisplayModeCancelEventArgs.cs
- BamlBinaryReader.cs
- SessionParameter.cs
- RequestTimeoutManager.cs
- Vector3dCollection.cs
- Token.cs
- WebBaseEventKeyComparer.cs
- HuffmanTree.cs
- TypeDescriptorContext.cs
- ExpressionBuilder.cs
- ThreadAbortException.cs
- LoginUtil.cs
- RuntimeTrackingProfile.cs
- BindingList.cs
- LicenseContext.cs
- UnhandledExceptionEventArgs.cs
- ChannelParameterCollection.cs
- XmlSchemaFacet.cs
- DbConnectionStringCommon.cs
- RelatedCurrencyManager.cs
- TrackingMemoryStreamFactory.cs
- ScrollChangedEventArgs.cs
- ImagingCache.cs
- SafeNativeMethodsOther.cs
- SqlAggregateChecker.cs
- HtmlTableRowCollection.cs
- MetabaseReader.cs
- OdbcInfoMessageEvent.cs
- WebPartConnectionsCancelEventArgs.cs
- AppDomain.cs
- HWStack.cs
- MenuCommandsChangedEventArgs.cs
- ReadWriteControlDesigner.cs
- ToolStripSeparator.cs
- TransformerInfo.cs
- BooleanKeyFrameCollection.cs
- CheckBoxField.cs
- DateBoldEvent.cs
- InfoCardCryptoHelper.cs
- XmlSchemaComplexContentRestriction.cs
- Dispatcher.cs
- SqlServer2KCompatibilityCheck.cs
- ElasticEase.cs
- CaseStatementSlot.cs
- CompareValidator.cs
- RegexCaptureCollection.cs
- X500Name.cs
- ComboBoxAutomationPeer.cs
- OleDbParameterCollection.cs
- MappingException.cs
- PublisherMembershipCondition.cs
- RectAnimation.cs
- XamlTypeMapperSchemaContext.cs
- PassportAuthenticationModule.cs
- MonitorWrapper.cs
- LinkedList.cs
- ComPlusTraceRecord.cs
- Misc.cs
- ComplusEndpointConfigContainer.cs
- PriorityChain.cs
- CompoundFileIOPermission.cs
- RequestCacheEntry.cs
- Operators.cs
- ServiceModelConfigurationSectionGroup.cs
- GroupBox.cs