Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- RadialGradientBrush.cs
- ModulesEntry.cs
- WindowsMenu.cs
- EventArgs.cs
- ComplexTypeEmitter.cs
- WorkflowRuntimeServiceElementCollection.cs
- EntityPropertyMappingAttribute.cs
- Tag.cs
- RotateTransform.cs
- StringResourceManager.cs
- DynamicResourceExtension.cs
- PointCollectionConverter.cs
- KeyGestureConverter.cs
- MetadataCacheItem.cs
- LineSegment.cs
- GZipStream.cs
- RoutedPropertyChangedEventArgs.cs
- Image.cs
- ShapeTypeface.cs
- DriveNotFoundException.cs
- EventWaitHandle.cs
- ParseChildrenAsPropertiesAttribute.cs
- AnnotationStore.cs
- XPathNodeHelper.cs
- DeferredElementTreeState.cs
- ImageKeyConverter.cs
- NavigatingCancelEventArgs.cs
- SiteOfOriginPart.cs
- TypeExtension.cs
- OAVariantLib.cs
- ObjectItemCollection.cs
- Hex.cs
- MissingSatelliteAssemblyException.cs
- MsmqIntegrationProcessProtocolHandler.cs
- TimeoutConverter.cs
- Point4DConverter.cs
- RequestValidator.cs
- LogicalTreeHelper.cs
- TimeoutException.cs
- ValidationResult.cs
- SoapSchemaImporter.cs
- Msec.cs
- WebExceptionStatus.cs
- QuaternionRotation3D.cs
- TdsValueSetter.cs
- XmlSchemaObjectTable.cs
- InputScopeAttribute.cs
- CloseSequence.cs
- InkCollectionBehavior.cs
- TypeConstant.cs
- CriticalHandle.cs
- ToolboxItemFilterAttribute.cs
- EntitySqlQueryBuilder.cs
- SpnEndpointIdentityExtension.cs
- SHA384CryptoServiceProvider.cs
- FileFormatException.cs
- StringDictionaryWithComparer.cs
- UInt64Converter.cs
- TypeResolvingOptions.cs
- MetadataUtilsSmi.cs
- ToolboxCategory.cs
- Control.cs
- BrowserCapabilitiesFactory.cs
- ToolStripLabel.cs
- MessageDecoder.cs
- DataGridTable.cs
- WinFormsSecurity.cs
- SplitterCancelEvent.cs
- Encoder.cs
- GlyphRunDrawing.cs
- WrappedIUnknown.cs
- EntityAdapter.cs
- XmlSchemaSimpleType.cs
- XamlNamespaceHelper.cs
- DefaultValueTypeConverter.cs
- SystemIPInterfaceStatistics.cs
- RootAction.cs
- ResXBuildProvider.cs
- DiagnosticTraceSource.cs
- ItemsPanelTemplate.cs
- SubstitutionList.cs
- Pts.cs
- XmlILConstructAnalyzer.cs
- DataGridColumnCollectionEditor.cs
- BamlStream.cs
- NonClientArea.cs
- WebControlParameterProxy.cs
- UnmanagedMarshal.cs
- CallbackValidator.cs
- InternalConfigRoot.cs
- StyleReferenceConverter.cs
- SqlXmlStorage.cs
- SqlTypeConverter.cs
- WindowHideOrCloseTracker.cs
- HyperLinkField.cs
- CollectionChangedEventManager.cs
- ProcessRequestArgs.cs
- PageStatePersister.cs
- Part.cs
- DataSourceListEditor.cs