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
- XmlRootAttribute.cs
- Rect.cs
- SqlConnectionString.cs
- SelectedGridItemChangedEvent.cs
- FloaterBaseParagraph.cs
- Timer.cs
- OutputCacheProfile.cs
- String.cs
- WorkItem.cs
- JumpTask.cs
- Screen.cs
- EntryWrittenEventArgs.cs
- XmlEntityReference.cs
- FlatButtonAppearance.cs
- AuthenticationConfig.cs
- precedingsibling.cs
- TextLineBreak.cs
- DynamicExpression.cs
- SafeThemeHandle.cs
- ContextBase.cs
- HitTestWithPointDrawingContextWalker.cs
- MsmqOutputMessage.cs
- PresentationSource.cs
- MgmtConfigurationRecord.cs
- RuntimeConfig.cs
- SBCSCodePageEncoding.cs
- Span.cs
- QilVisitor.cs
- SemaphoreSecurity.cs
- MenuItem.cs
- XPathDocumentBuilder.cs
- CheckBoxPopupAdapter.cs
- PublisherMembershipCondition.cs
- PropertyGeneratedEventArgs.cs
- PathGeometry.cs
- ZipIOExtraField.cs
- TraceSection.cs
- RemotingConfigParser.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- GuidelineSet.cs
- XmlSchemaGroupRef.cs
- PtsContext.cs
- MarkerProperties.cs
- SoapElementAttribute.cs
- SqlConnectionManager.cs
- ModelTreeManager.cs
- MimeObjectFactory.cs
- HttpListenerContext.cs
- MenuItemStyle.cs
- AsyncContentLoadedEventArgs.cs
- VectorKeyFrameCollection.cs
- HintTextConverter.cs
- DispatcherTimer.cs
- StructuredTypeEmitter.cs
- ConstructorBuilder.cs
- X500Name.cs
- XmlSerializerNamespaces.cs
- TypeDescriptor.cs
- OrderByQueryOptionExpression.cs
- TraceLevelHelper.cs
- BadImageFormatException.cs
- TaiwanCalendar.cs
- SignerInfo.cs
- HandlerBase.cs
- EncryptedType.cs
- TextBreakpoint.cs
- Button.cs
- TcpClientChannel.cs
- DbDataReader.cs
- InternalControlCollection.cs
- initElementDictionary.cs
- AssemblyNameProxy.cs
- RuleSetDialog.Designer.cs
- EntityDataSourceContextCreatingEventArgs.cs
- SocketInformation.cs
- TraceSection.cs
- HandlerFactoryWrapper.cs
- XmlTextAttribute.cs
- StubHelpers.cs
- SqlConnection.cs
- GridViewPageEventArgs.cs
- DataTemplateKey.cs
- mansign.cs
- InternalControlCollection.cs
- ServiceChannel.cs
- EraserBehavior.cs
- DBPropSet.cs
- SendMailErrorEventArgs.cs
- ListViewDeletedEventArgs.cs
- MethodToken.cs
- DataGridViewButtonCell.cs
- Pens.cs
- HMACSHA256.cs
- XPathAncestorQuery.cs
- ListBoxDesigner.cs
- UpdateException.cs
- Screen.cs
- Operator.cs
- RtfNavigator.cs
- DateTimeValueSerializerContext.cs