Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DefaultBindingPropertyAttribute.cs / 1305376 / DefaultBindingPropertyAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel {
using System;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Specifies the default binding property for a component.
///
[AttributeUsage(AttributeTargets.Class)]
public sealed class DefaultBindingPropertyAttribute : Attribute {
private readonly string name;
///
///
/// Initializes a new instance of
/// the class.
///
///
public DefaultBindingPropertyAttribute() {
this.name = null;
}
///
///
/// Initializes a new instance of
/// the class.
///
///
public DefaultBindingPropertyAttribute(string name) {
this.name = name;
}
///
///
/// Gets the name of the default binding property for the component this attribute is
/// bound to.
///
///
public string Name {
get {
return name;
}
}
///
///
/// Specifies the default value for the , which is . This
/// field is read-only.
///
///
public static readonly DefaultBindingPropertyAttribute Default = new DefaultBindingPropertyAttribute();
public override bool Equals(object obj) {
DefaultBindingPropertyAttribute other = obj as DefaultBindingPropertyAttribute;
return other != null && other.Name == name;
}
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
- PackageFilter.cs
- XmlDataContract.cs
- SqlCommandBuilder.cs
- UnlockCardRequest.cs
- DataBindingValueUIHandler.cs
- SqlMethods.cs
- StringFormat.cs
- XsltSettings.cs
- HelpProvider.cs
- UnsafeNativeMethods.cs
- AuthenticationModuleElement.cs
- DataService.cs
- StatusBarPanelClickEvent.cs
- PolicyLevel.cs
- LayoutInformation.cs
- TypeLoadException.cs
- CryptoProvider.cs
- Int32.cs
- HttpsHostedTransportConfiguration.cs
- Error.cs
- SystemSounds.cs
- StreamReader.cs
- CustomAssemblyResolver.cs
- RadioButtonAutomationPeer.cs
- StringWriter.cs
- DbConnectionFactory.cs
- Grant.cs
- DesignerSerializationOptionsAttribute.cs
- WeakEventTable.cs
- AssociationTypeEmitter.cs
- ClientScriptItem.cs
- DesignTimeParseData.cs
- StringDictionaryCodeDomSerializer.cs
- BindingCollection.cs
- ObjectQuery.cs
- Journaling.cs
- PrincipalPermission.cs
- CompilerGeneratedAttribute.cs
- CalculatedColumn.cs
- MD5Cng.cs
- TimeZoneInfo.cs
- UniqueID.cs
- PieceNameHelper.cs
- ReferenceCountedObject.cs
- TextDecorations.cs
- _ChunkParse.cs
- LongMinMaxAggregationOperator.cs
- UnknownWrapper.cs
- LocatorManager.cs
- TextureBrush.cs
- ArraySegment.cs
- PagerSettings.cs
- MissingSatelliteAssemblyException.cs
- namescope.cs
- PersonalizablePropertyEntry.cs
- EntityClassGenerator.cs
- _DigestClient.cs
- FixedMaxHeap.cs
- ThrowHelper.cs
- SettingsBindableAttribute.cs
- LinearKeyFrames.cs
- FileInfo.cs
- StyleSelector.cs
- RowToParametersTransformer.cs
- DateTime.cs
- DynamicHyperLink.cs
- shaper.cs
- HeaderCollection.cs
- SegmentInfo.cs
- MediaScriptCommandRoutedEventArgs.cs
- UnsafeNativeMethods.cs
- FileVersion.cs
- MetaColumn.cs
- BufferBuilder.cs
- ViewStateModeByIdAttribute.cs
- DependencyObjectType.cs
- AutomationEventArgs.cs
- FontFamily.cs
- Tile.cs
- LowerCaseStringConverter.cs
- shaperfactory.cs
- ResourceDisplayNameAttribute.cs
- ProjectionPathBuilder.cs
- WCFModelStrings.Designer.cs
- QueryGeneratorBase.cs
- MaterialGroup.cs
- Opcode.cs
- Columns.cs
- ToolTip.cs
- DES.cs
- ParserExtension.cs
- RevocationPoint.cs
- ObjectDataSourceDisposingEventArgs.cs
- DiscoveryVersion.cs
- EmissiveMaterial.cs
- PropertySet.cs
- WpfPayload.cs
- NavigateUrlConverter.cs
- Separator.cs
- bidPrivateBase.cs