Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- AstTree.cs
- EmptyEnumerable.cs
- columnmapfactory.cs
- Application.cs
- LineGeometry.cs
- altserialization.cs
- QueryCreatedEventArgs.cs
- XmlSchemaAttributeGroupRef.cs
- PropertyEmitterBase.cs
- XPathAncestorIterator.cs
- BindingMAnagerBase.cs
- Int32Collection.cs
- ResourceReferenceExpressionConverter.cs
- SoapFault.cs
- TreeNode.cs
- DataContractSet.cs
- ItemDragEvent.cs
- ListSortDescriptionCollection.cs
- XmlSchemaObjectCollection.cs
- HttpRequestCacheValidator.cs
- cache.cs
- StorageEntitySetMapping.cs
- MultiBinding.cs
- PeerChannelListener.cs
- SqlMethods.cs
- XmlSchemaAttribute.cs
- BrowserCapabilitiesFactoryBase.cs
- FileDataSourceCache.cs
- RoleService.cs
- HotCommands.cs
- ArgumentException.cs
- PersistChildrenAttribute.cs
- ClientTarget.cs
- InkCanvas.cs
- LoginView.cs
- OuterGlowBitmapEffect.cs
- ScopedKnownTypes.cs
- DiscoveryViaBehavior.cs
- RawMouseInputReport.cs
- Messages.cs
- ContainerParagraph.cs
- NotImplementedException.cs
- InternalUserCancelledException.cs
- QilCloneVisitor.cs
- IOThreadScheduler.cs
- DBDataPermissionAttribute.cs
- TransactionFlowAttribute.cs
- IsolationInterop.cs
- WorkflowMarkupElementEventArgs.cs
- ACE.cs
- SystemFonts.cs
- ClientRuntimeConfig.cs
- RecognizedPhrase.cs
- CookieProtection.cs
- MULTI_QI.cs
- RelatedEnd.cs
- DictionaryEntry.cs
- DataAdapter.cs
- ControlPersister.cs
- EpmCustomContentSerializer.cs
- DataGridView.cs
- NativeMethods.cs
- NetSectionGroup.cs
- WebOperationContext.cs
- TemplateNameScope.cs
- DbProviderServices.cs
- SkinBuilder.cs
- PassportPrincipal.cs
- XsdDateTime.cs
- PersonalizationStateQuery.cs
- counter.cs
- DictionaryTraceRecord.cs
- Viewport2DVisual3D.cs
- MetafileHeader.cs
- Int64Converter.cs
- VariableQuery.cs
- WorkBatch.cs
- AsymmetricKeyExchangeDeformatter.cs
- WebErrorHandler.cs
- SizeChangedInfo.cs
- RelatedView.cs
- HtmlHead.cs
- SerializationInfoEnumerator.cs
- ValidationSummary.cs
- ImpersonateTokenRef.cs
- TableLayoutSettingsTypeConverter.cs
- WsiProfilesElement.cs
- ObjectListCommandEventArgs.cs
- SuppressMessageAttribute.cs
- GeneralTransform3DCollection.cs
- TableLayoutColumnStyleCollection.cs
- XMLSchema.cs
- DataGridViewRowsRemovedEventArgs.cs
- ScrollBarAutomationPeer.cs
- XmlWhitespace.cs
- ObjectDataSourceMethodEditor.cs
- FtpWebRequest.cs
- RangeValidator.cs
- EqualityComparer.cs
- FieldDescriptor.cs