Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- x509utils.cs
- PolicyStatement.cs
- IconConverter.cs
- TransactedBatchingBehavior.cs
- TextFormatterImp.cs
- MethodBuilder.cs
- AutomationIdentifier.cs
- DataGridColumnCollectionEditor.cs
- XmlWellformedWriter.cs
- AudienceUriMode.cs
- BitmapVisualManager.cs
- NavigationHelper.cs
- TraceContext.cs
- OdbcHandle.cs
- RightsManagementEncryptionTransform.cs
- HandlerWithFactory.cs
- CallbackHandler.cs
- IdnElement.cs
- FtpWebResponse.cs
- AsyncContentLoadedEventArgs.cs
- WorkflowQueue.cs
- ColumnPropertiesGroup.cs
- EntityContainerEntitySet.cs
- Button.cs
- DataSourceCacheDurationConverter.cs
- IxmlLineInfo.cs
- MeasurementDCInfo.cs
- LoginDesigner.cs
- Scripts.cs
- ProviderIncompatibleException.cs
- _UncName.cs
- ListBindableAttribute.cs
- DataControlFieldHeaderCell.cs
- MultiDataTrigger.cs
- CreateParams.cs
- SHA256CryptoServiceProvider.cs
- Label.cs
- HttpBufferlessInputStream.cs
- SQLMoney.cs
- Cursor.cs
- SqlBulkCopyColumnMapping.cs
- ByteAnimationUsingKeyFrames.cs
- TraceLog.cs
- TableLayoutCellPaintEventArgs.cs
- AspNetSynchronizationContext.cs
- WebPartAuthorizationEventArgs.cs
- TagPrefixAttribute.cs
- XmlElement.cs
- SafeEventLogWriteHandle.cs
- Int16.cs
- basecomparevalidator.cs
- DataRowCollection.cs
- PathData.cs
- ConfigurationErrorsException.cs
- SplitterDesigner.cs
- Queue.cs
- SafeCryptContextHandle.cs
- CodeTypeMember.cs
- ReadOnlyDataSource.cs
- ModuleBuilderData.cs
- HostUtils.cs
- DateTimeOffsetAdapter.cs
- AutomationEvent.cs
- WebPartConnectionsDisconnectVerb.cs
- EntityDesignerDataSourceView.cs
- SqlCachedBuffer.cs
- ScalarConstant.cs
- InvokeGenerator.cs
- TypedDataSetSchemaImporterExtension.cs
- TraceUtils.cs
- unitconverter.cs
- MsmqHostedTransportManager.cs
- ClientReliableChannelBinder.cs
- ThrowHelper.cs
- ProcessHostFactoryHelper.cs
- FieldDescriptor.cs
- DecoderNLS.cs
- SystemTcpConnection.cs
- ListViewItem.cs
- TraceContextRecord.cs
- Rotation3DAnimationUsingKeyFrames.cs
- HtmlElementCollection.cs
- SynchronizedInputAdaptor.cs
- Help.cs
- TouchDevice.cs
- StorageComplexTypeMapping.cs
- BamlTreeUpdater.cs
- DataControlButton.cs
- OleDbConnectionInternal.cs
- XmlEventCache.cs
- SafeViewOfFileHandle.cs
- Debug.cs
- CacheMode.cs
- AccessViolationException.cs
- Utilities.cs
- UpdateRecord.cs
- MediaScriptCommandRoutedEventArgs.cs
- HTTPNotFoundHandler.cs
- XPathMessageFilter.cs
- LabelEditEvent.cs