Code:
/ FX-1434 / FX-1434 / 1.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; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class DefaultBindingPropertyAttribute : Attribute { private readonly string name; ///Specifies the default binding property for a component. ////// public DefaultBindingPropertyAttribute() { this.name = null; } ////// Initializes a new instance of /// the ///class. /// /// public DefaultBindingPropertyAttribute(string name) { this.name = name; } ////// Initializes a new instance of /// the ///class. /// /// public string Name { get { return name; } } ////// Gets the name of the default binding property for the component this attribute is /// bound to. /// ////// 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(); } } }/// 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
- AudienceUriMode.cs
- VectorAnimationBase.cs
- HtmlSelect.cs
- CompoundFileReference.cs
- FacetDescription.cs
- LinkButton.cs
- CharacterMetrics.cs
- Point3DConverter.cs
- DefaultValueAttribute.cs
- ClassicBorderDecorator.cs
- FrameworkElementAutomationPeer.cs
- NativeMethods.cs
- EdgeProfileValidation.cs
- DBCommand.cs
- precedingquery.cs
- WebDisplayNameAttribute.cs
- EntityAdapter.cs
- LayoutEvent.cs
- SortExpressionBuilder.cs
- WebPartZoneBaseDesigner.cs
- FileEnumerator.cs
- ImageUrlEditor.cs
- XmlLinkedNode.cs
- MiniConstructorInfo.cs
- InputLanguageManager.cs
- FactoryId.cs
- PictureBox.cs
- SdlChannelSink.cs
- AsymmetricSignatureDeformatter.cs
- ReturnValue.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- XmlSchemaValidator.cs
- ComponentCommands.cs
- FormCollection.cs
- BindingExpression.cs
- CompiledAction.cs
- ISAPIWorkerRequest.cs
- TypeSystem.cs
- SharedDp.cs
- SafeHandles.cs
- NamedPipeChannelListener.cs
- StickyNoteAnnotations.cs
- XmlDeclaration.cs
- PasswordRecovery.cs
- XNameConverter.cs
- SelfIssuedAuthProofToken.cs
- ValidationHelper.cs
- RectangleConverter.cs
- ConnectionInterfaceCollection.cs
- BamlStream.cs
- StringArrayConverter.cs
- Vector3dCollection.cs
- SessionStateItemCollection.cs
- SwitchElementsCollection.cs
- PropertySet.cs
- WindowsScrollBar.cs
- WebPartHelpVerb.cs
- ToolbarAUtomationPeer.cs
- DtdParser.cs
- TargetControlTypeCache.cs
- DbProviderManifest.cs
- XhtmlStyleClass.cs
- RegexCompilationInfo.cs
- RC2CryptoServiceProvider.cs
- IndentedTextWriter.cs
- TerminatorSinks.cs
- ToolStripSettings.cs
- DataGridViewCellConverter.cs
- MyContact.cs
- KeyedCollection.cs
- ActionMismatchAddressingException.cs
- HiddenField.cs
- MarkupCompilePass2.cs
- RuleAction.cs
- RunWorkerCompletedEventArgs.cs
- RectangleHotSpot.cs
- ArgIterator.cs
- ClientBuildManager.cs
- WSDualHttpBinding.cs
- ShutDownListener.cs
- Mapping.cs
- NativeMethodsCLR.cs
- XPathAxisIterator.cs
- HostingEnvironmentException.cs
- Token.cs
- TextRange.cs
- FormsAuthenticationConfiguration.cs
- Visual3DCollection.cs
- RuleSettingsCollection.cs
- ConstantExpression.cs
- CachedRequestParams.cs
- EnumCodeDomSerializer.cs
- IntSecurity.cs
- Calendar.cs
- AttributeAction.cs
- LineGeometry.cs
- Page.cs
- CompoundFileIOPermission.cs
- XDRSchema.cs
- SqlProviderManifest.cs