Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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(); } } }/// 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
- DatatypeImplementation.cs
- WebFormDesignerActionService.cs
- TextSelection.cs
- Triplet.cs
- CodeComment.cs
- GC.cs
- AncestorChangedEventArgs.cs
- NonBatchDirectoryCompiler.cs
- SortedDictionary.cs
- DataSourceConverter.cs
- ListChangedEventArgs.cs
- IMembershipProvider.cs
- DesignerHost.cs
- ConsoleCancelEventArgs.cs
- XmlSchemaAnnotation.cs
- SourceElementsCollection.cs
- SafeNativeMethods.cs
- TextParaClient.cs
- TrustLevelCollection.cs
- AxHost.cs
- Group.cs
- PageVisual.cs
- CaseInsensitiveComparer.cs
- SecurityProtocolFactory.cs
- ControlIdConverter.cs
- ProjectedWrapper.cs
- mediapermission.cs
- PseudoWebRequest.cs
- ApplicationFileCodeDomTreeGenerator.cs
- sqlpipe.cs
- XmlNotation.cs
- NumericUpDownAccelerationCollection.cs
- ProbeMatchesMessageCD1.cs
- CodeAttributeDeclaration.cs
- BypassElementCollection.cs
- DataGridViewCellFormattingEventArgs.cs
- ObjectSpanRewriter.cs
- SiteMembershipCondition.cs
- DuplicateWaitObjectException.cs
- EncoderReplacementFallback.cs
- BinaryNode.cs
- DataGridViewSelectedRowCollection.cs
- ConsoleKeyInfo.cs
- DesignOnlyAttribute.cs
- UserControlAutomationPeer.cs
- Automation.cs
- PlainXmlSerializer.cs
- SnapLine.cs
- GlyphInfoList.cs
- PersonalizationStateQuery.cs
- GeneralTransform2DTo3D.cs
- RuntimeHelpers.cs
- ProjectionRewriter.cs
- List.cs
- ConstraintCollection.cs
- BinaryFormatterWriter.cs
- TextContainer.cs
- DispatcherTimer.cs
- FontUnit.cs
- COM2ExtendedTypeConverter.cs
- SqlClientFactory.cs
- SafeTokenHandle.cs
- MeshGeometry3D.cs
- StylusCollection.cs
- MembershipValidatePasswordEventArgs.cs
- GenericRootAutomationPeer.cs
- KeyedPriorityQueue.cs
- ExecutionProperties.cs
- TdsParser.cs
- XPathParser.cs
- SeekStoryboard.cs
- ToolStripItemClickedEventArgs.cs
- XPathQilFactory.cs
- HighlightVisual.cs
- Binding.cs
- IsolatedStorageException.cs
- BuildManager.cs
- IdentityManager.cs
- BlurEffect.cs
- MatrixStack.cs
- UrlMappingsModule.cs
- InvokePattern.cs
- SimpleRecyclingCache.cs
- ComponentResourceKeyConverter.cs
- XmlnsDictionary.cs
- isolationinterop.cs
- ReadWriteSpinLock.cs
- StrokeCollection2.cs
- PropertyEntry.cs
- CompositeActivityDesigner.cs
- Image.cs
- SqlCacheDependencyDatabaseCollection.cs
- DataShape.cs
- EventLogEntry.cs
- MatrixKeyFrameCollection.cs
- SafeCryptContextHandle.cs
- AccessViolationException.cs
- GridViewRowPresenterBase.cs
- SoapCodeExporter.cs
- TransportElement.cs