Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / DefaultBindingPropertyAttribute.cs / 1 / 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();
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Lazy.cs
- DirectionalLight.cs
- ProcessHost.cs
- Color.cs
- FontUnitConverter.cs
- GregorianCalendar.cs
- PiiTraceSource.cs
- ArglessEventHandlerProxy.cs
- CodeCommentStatement.cs
- X500Name.cs
- CachedFontFace.cs
- _SecureChannel.cs
- RectKeyFrameCollection.cs
- FormsAuthenticationEventArgs.cs
- MediaPlayerState.cs
- columnmapkeybuilder.cs
- XmlHierarchicalDataSourceView.cs
- TypedReference.cs
- DataSourceIDConverter.cs
- MILUtilities.cs
- StdValidatorsAndConverters.cs
- DataServiceQueryOfT.cs
- MetadataArtifactLoaderCompositeFile.cs
- followingquery.cs
- ScriptResourceHandler.cs
- PolyQuadraticBezierSegment.cs
- CommandBinding.cs
- PageBuildProvider.cs
- ManagedIStream.cs
- SpeechSynthesizer.cs
- SocketInformation.cs
- DecoderReplacementFallback.cs
- SearchForVirtualItemEventArgs.cs
- Compiler.cs
- ILGenerator.cs
- BaseCollection.cs
- FormatConvertedBitmap.cs
- XmlChoiceIdentifierAttribute.cs
- WorkflowValidationFailedException.cs
- WebPartRestoreVerb.cs
- IFormattable.cs
- Baml2006Reader.cs
- HttpHandlersSection.cs
- CodeMemberProperty.cs
- XmlKeywords.cs
- SQLSingleStorage.cs
- SmtpDigestAuthenticationModule.cs
- clipboard.cs
- TextWriterTraceListener.cs
- DataSpaceManager.cs
- DataControlExtensions.cs
- ObservableCollection.cs
- SvcMapFileSerializer.cs
- PanelStyle.cs
- DropShadowBitmapEffect.cs
- RectAnimationUsingKeyFrames.cs
- WebEventTraceProvider.cs
- MimeParameterWriter.cs
- DataGridViewTextBoxEditingControl.cs
- MarkupObject.cs
- XmlUrlResolver.cs
- InstanceLockedException.cs
- LongTypeConverter.cs
- TextureBrush.cs
- UriTemplateLiteralPathSegment.cs
- ProvidersHelper.cs
- ImageMapEventArgs.cs
- EntityViewGenerator.cs
- ConfigXmlElement.cs
- UnaryNode.cs
- XmlMembersMapping.cs
- TableLayoutRowStyleCollection.cs
- SiteMapNodeItemEventArgs.cs
- WebPermission.cs
- Viewport2DVisual3D.cs
- XmlSubtreeReader.cs
- CheckPair.cs
- FaultCode.cs
- FacetChecker.cs
- SoapServerProtocol.cs
- ArraySortHelper.cs
- ExpressionPrinter.cs
- Constants.cs
- smtppermission.cs
- NoneExcludedImageIndexConverter.cs
- InfoCardAsymmetricCrypto.cs
- TriggerCollection.cs
- WbmpConverter.cs
- AuthenticationManager.cs
- DetailsViewDeleteEventArgs.cs
- DataPointer.cs
- AssemblyAttributesGoHere.cs
- NotifyInputEventArgs.cs
- RectangleF.cs
- CompiledQuery.cs
- ErrorTableItemStyle.cs
- HttpHandlerAction.cs
- VirtualizedItemPattern.cs
- Brush.cs
- IndexOutOfRangeException.cs