Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ComplexBindingPropertiesAttribute.cs / 1305376 / 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
- ListParaClient.cs
- PrimitiveCodeDomSerializer.cs
- DataRowComparer.cs
- basevalidator.cs
- DateRangeEvent.cs
- SymbolPair.cs
- Roles.cs
- Directory.cs
- WS2007HttpBindingCollectionElement.cs
- MemberDescriptor.cs
- ClrPerspective.cs
- PageThemeBuildProvider.cs
- RecognizeCompletedEventArgs.cs
- ActivityDesignerResources.cs
- DetailsViewPageEventArgs.cs
- HtmlAnchor.cs
- TypedTableGenerator.cs
- DependencyObject.cs
- ValueQuery.cs
- MonthCalendarDesigner.cs
- TemplateKeyConverter.cs
- InkCanvasSelectionAdorner.cs
- StructuralType.cs
- MenuScrollingVisibilityConverter.cs
- ListControl.cs
- LinqDataSourceView.cs
- BatchParser.cs
- RawMouseInputReport.cs
- StrongNameMembershipCondition.cs
- BuildResult.cs
- SqlNodeTypeOperators.cs
- PrintSchema.cs
- TextTabProperties.cs
- HttpsTransportElement.cs
- DateTimeSerializationSection.cs
- TypeConverterValueSerializer.cs
- SqlOuterApplyReducer.cs
- DataColumnPropertyDescriptor.cs
- ExpressionBuilder.cs
- LocalizableAttribute.cs
- ToolStripContentPanel.cs
- DeflateStream.cs
- ConstructorNeedsTagAttribute.cs
- WindowsFormsLinkLabel.cs
- Image.cs
- SHA384.cs
- ObjectStorage.cs
- SortFieldComparer.cs
- PropertyChangingEventArgs.cs
- XmlCharCheckingWriter.cs
- XmlReflectionImporter.cs
- _LocalDataStore.cs
- SystemIcons.cs
- ServiceOperationParameter.cs
- HandlerBase.cs
- RichTextBox.cs
- SqlDataSourceConfigureSelectPanel.cs
- ServicePointManager.cs
- XmlTextReader.cs
- ValidationHelpers.cs
- CodeRemoveEventStatement.cs
- ObjectSet.cs
- DesignTableCollection.cs
- PublisherMembershipCondition.cs
- ClientType.cs
- SafeCoTaskMem.cs
- ConstantExpression.cs
- FlowDocumentView.cs
- TemplatedWizardStep.cs
- HttpCachePolicy.cs
- Utils.cs
- DesignOnlyAttribute.cs
- NodeFunctions.cs
- ObjectDataSourceStatusEventArgs.cs
- DiffuseMaterial.cs
- PreviewPrintController.cs
- DispatcherObject.cs
- ArrangedElementCollection.cs
- SystemKeyConverter.cs
- AssemblyFilter.cs
- LocatorPart.cs
- LassoHelper.cs
- ConfigurationSection.cs
- CompoundFileStorageReference.cs
- XmlExceptionHelper.cs
- BindingContext.cs
- ColumnMapCopier.cs
- _LazyAsyncResult.cs
- FileDetails.cs
- TextServicesContext.cs
- SqlNodeAnnotation.cs
- TextEncodedRawTextWriter.cs
- Config.cs
- WorkflowApplicationException.cs
- QueryCacheEntry.cs
- AsyncOperationContext.cs
- ClientSession.cs
- CompiledAction.cs
- XslTransform.cs
- VectorCollection.cs