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;
///
/// Specifies the data source and data member properties for a component.
///
[AttributeUsage(AttributeTargets.Class)]
public sealed class ComplexBindingPropertiesAttribute : Attribute {
private readonly string dataSource;
private readonly string dataMember;
///
///
/// Initializes a new instance of
/// the class.
///
///
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;
}
///
///
/// Gets the name of the data source property for the component this attribute is
/// bound to.
///
///
public string DataSource {
get {
return dataSource;
}
}
///
///
/// Gets the name of the data member property for the component this attribute is
/// bound to.
///
///
public string DataMember {
get {
return dataMember;
}
}
///
///
/// Specifies the default value for the , which is . This
/// field is read-only.
///
///
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.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel {
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Specifies the data source and data member properties for a component.
///
[AttributeUsage(AttributeTargets.Class)]
public sealed class ComplexBindingPropertiesAttribute : Attribute {
private readonly string dataSource;
private readonly string dataMember;
///
///
/// Initializes a new instance of
/// the class.
///
///
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;
}
///
///
/// Gets the name of the data source property for the component this attribute is
/// bound to.
///
///
public string DataSource {
get {
return dataSource;
}
}
///
///
/// Gets the name of the data member property for the component this attribute is
/// bound to.
///
///
public string DataMember {
get {
return dataMember;
}
}
///
///
/// Specifies the default value for the , which is . This
/// field is read-only.
///
///
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CultureInfoConverter.cs
- MembershipValidatePasswordEventArgs.cs
- User.cs
- BindToObject.cs
- Utils.cs
- SerializationInfo.cs
- RegexTypeEditor.cs
- cookiecollection.cs
- SoapObjectWriter.cs
- MenuItemAutomationPeer.cs
- IteratorAsyncResult.cs
- DtdParser.cs
- SecurityDocument.cs
- MimeMultiPart.cs
- TextBox.cs
- AppearanceEditorPart.cs
- templategroup.cs
- IndexedString.cs
- _AuthenticationState.cs
- BamlStream.cs
- odbcmetadatacolumnnames.cs
- BezierSegment.cs
- Canvas.cs
- Renderer.cs
- ISAPIApplicationHost.cs
- RMPermissions.cs
- _UncName.cs
- MiniConstructorInfo.cs
- TargetPerspective.cs
- _NestedSingleAsyncResult.cs
- StorageMappingFragment.cs
- activationcontext.cs
- sortedlist.cs
- ProfileSettings.cs
- SiteMapDataSourceView.cs
- HwndHostAutomationPeer.cs
- RtfFormatStack.cs
- ToolStripItemTextRenderEventArgs.cs
- PartialCachingControl.cs
- MediaContextNotificationWindow.cs
- LinqDataSourceView.cs
- FixedPageAutomationPeer.cs
- DocumentApplication.cs
- FloatMinMaxAggregationOperator.cs
- CodeNamespaceImport.cs
- GridViewEditEventArgs.cs
- TiffBitmapEncoder.cs
- IPEndPointCollection.cs
- ExecutionTracker.cs
- TripleDES.cs
- AutomationPeer.cs
- RSACryptoServiceProvider.cs
- ToolboxItemImageConverter.cs
- ZipIORawDataFileBlock.cs
- ItemMap.cs
- VirtualPath.cs
- TypeAccessException.cs
- ActivityCodeDomSerializationManager.cs
- xsdvalidator.cs
- ButtonChrome.cs
- MaterializeFromAtom.cs
- DragDrop.cs
- GroupedContextMenuStrip.cs
- DecimalConverter.cs
- CqlIdentifiers.cs
- SystemInfo.cs
- LinkUtilities.cs
- DataViewManagerListItemTypeDescriptor.cs
- DocumentXPathNavigator.cs
- RbTree.cs
- InterleavedZipPartStream.cs
- InputElement.cs
- BoundsDrawingContextWalker.cs
- InteropBitmapSource.cs
- __ComObject.cs
- TimeoutHelper.cs
- InternalControlCollection.cs
- XhtmlCssHandler.cs
- UriExt.cs
- HtmlButton.cs
- BuildResult.cs
- Int64AnimationBase.cs
- CodeDirectoryCompiler.cs
- MethodBody.cs
- SafeFileMappingHandle.cs
- BuildProviderInstallComponent.cs
- AllowedAudienceUriElementCollection.cs
- XmlReflectionMember.cs
- XmlCharacterData.cs
- PropertyEmitterBase.cs
- Activity.cs
- Authorization.cs
- WebPartsPersonalization.cs
- XmlTextReaderImplHelpers.cs
- ProviderBase.cs
- _OSSOCK.cs
- NominalTypeEliminator.cs
- OrderPreservingPipeliningMergeHelper.cs
- FileChangesMonitor.cs
- GeneralTransform3DGroup.cs