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
- VirtualizingPanel.cs
- Point3DConverter.cs
- InvokePatternIdentifiers.cs
- WebEventCodes.cs
- ZipIOExtraFieldZip64Element.cs
- SizeFConverter.cs
- FontFamilyValueSerializer.cs
- BuildProvider.cs
- MatrixCamera.cs
- Pen.cs
- NegatedConstant.cs
- XpsPartBase.cs
- Subtree.cs
- GridViewHeaderRowPresenter.cs
- BitmapEncoder.cs
- storepermission.cs
- CommandBinding.cs
- Registry.cs
- CompareInfo.cs
- ScriptComponentDescriptor.cs
- SafeProcessHandle.cs
- NodeInfo.cs
- EmptyElement.cs
- _BufferOffsetSize.cs
- log.cs
- SapiInterop.cs
- FileClassifier.cs
- TextElementAutomationPeer.cs
- TdsParameterSetter.cs
- ComboBox.cs
- _Rfc2616CacheValidators.cs
- StrokeCollection.cs
- WpfXamlLoader.cs
- XPathAncestorIterator.cs
- WrapperSecurityCommunicationObject.cs
- RequestChannel.cs
- SqlTypeSystemProvider.cs
- LineBreak.cs
- PolicyStatement.cs
- UserMapPath.cs
- RegexTree.cs
- KeyGestureConverter.cs
- Hyperlink.cs
- NotConverter.cs
- DataListCommandEventArgs.cs
- CategoryNameCollection.cs
- XPathDocumentNavigator.cs
- TimeEnumHelper.cs
- TransformerConfigurationWizardBase.cs
- RegistryExceptionHelper.cs
- DesignerLabelAdapter.cs
- XmlStrings.cs
- SqlPersonalizationProvider.cs
- DataGridViewCellConverter.cs
- WindowsIdentity.cs
- RelatedCurrencyManager.cs
- SystemThemeKey.cs
- WebPartAuthorizationEventArgs.cs
- WCFServiceClientProxyGenerator.cs
- DBConcurrencyException.cs
- OdbcTransaction.cs
- WebPartsPersonalizationAuthorization.cs
- WebRequest.cs
- _LocalDataStoreMgr.cs
- PEFileReader.cs
- HierarchicalDataBoundControl.cs
- ConfigXmlSignificantWhitespace.cs
- EntityContainer.cs
- ScriptMethodAttribute.cs
- ZipIOExtraFieldPaddingElement.cs
- SymbolMethod.cs
- XamlRtfConverter.cs
- PenThreadPool.cs
- SessionEndingEventArgs.cs
- WebHeaderCollection.cs
- NonSerializedAttribute.cs
- ArgumentReference.cs
- Events.cs
- IntPtr.cs
- ObjectStateFormatter.cs
- SiteMapNodeItemEventArgs.cs
- CellTreeNodeVisitors.cs
- OleStrCAMarshaler.cs
- DataContractSerializerSection.cs
- namescope.cs
- DelegatingConfigHost.cs
- path.cs
- DesignerTransactionCloseEvent.cs
- FileSystemWatcher.cs
- Application.cs
- LinqDataSourceUpdateEventArgs.cs
- UTF8Encoding.cs
- DispatchWrapper.cs
- UpdatePanelTrigger.cs
- PropertyInformation.cs
- XmlSchemaComplexType.cs
- UInt16Converter.cs
- SqlTopReducer.cs
- WebConfigurationHost.cs
- InputLanguage.cs