Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Specifies the default value for the ///, which is . This /// field is read-only. /// // 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// 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
- ClientScriptItemCollection.cs
- BooleanFacetDescriptionElement.cs
- _SSPIWrapper.cs
- WmlLiteralTextAdapter.cs
- OrderedDictionary.cs
- MaskPropertyEditor.cs
- Viewport2DVisual3D.cs
- VarRefManager.cs
- IsolatedStorageFilePermission.cs
- ConstNode.cs
- ToolStripItemCollection.cs
- sqlser.cs
- StyleHelper.cs
- UrlPath.cs
- XmlSchemaAll.cs
- Attributes.cs
- DataGridLinkButton.cs
- HeaderedItemsControl.cs
- SignatureHelper.cs
- ClientProxyGenerator.cs
- ResourceDefaultValueAttribute.cs
- WriteableBitmap.cs
- FrameworkElementAutomationPeer.cs
- ImportedNamespaceContextItem.cs
- EmptyCollection.cs
- SequentialWorkflowRootDesigner.cs
- CodeDOMUtility.cs
- QueryInterceptorAttribute.cs
- ThreadExceptionDialog.cs
- XmlQualifiedName.cs
- SmiRequestExecutor.cs
- DataListCommandEventArgs.cs
- SelectorItemAutomationPeer.cs
- StorageTypeMapping.cs
- JpegBitmapDecoder.cs
- StrokeNodeData.cs
- ArgumentOutOfRangeException.cs
- CodeArrayIndexerExpression.cs
- WinInet.cs
- NameNode.cs
- ToolStripItemRenderEventArgs.cs
- XPathArrayIterator.cs
- WbmpConverter.cs
- RewritingValidator.cs
- UniformGrid.cs
- AssemblyBuilder.cs
- ReferenceConverter.cs
- RootNamespaceAttribute.cs
- CfgRule.cs
- SqlClientPermission.cs
- TextFormatterHost.cs
- CroppedBitmap.cs
- OrderedHashRepartitionStream.cs
- ExpressionHelper.cs
- DeclarativeCatalogPart.cs
- SymbolMethod.cs
- WebBrowserNavigatedEventHandler.cs
- DropDownList.cs
- WmpBitmapEncoder.cs
- PropertyFilterAttribute.cs
- FacetChecker.cs
- Matrix.cs
- PrintDialogDesigner.cs
- TableLayoutPanelDesigner.cs
- ListViewContainer.cs
- XmlConvert.cs
- MemberRelationshipService.cs
- UrlAuthFailedErrorFormatter.cs
- XmlTextReaderImplHelpers.cs
- ProcessModuleCollection.cs
- XmlSignatureManifest.cs
- TickBar.cs
- MimeMapping.cs
- SaveFileDialog.cs
- Mapping.cs
- EdmItemError.cs
- SelectorItemAutomationPeer.cs
- ProtocolViolationException.cs
- ProcessStartInfo.cs
- PermissionSetEnumerator.cs
- WizardSideBarListControlItem.cs
- ItemsPresenter.cs
- MsmqTransportReceiveParameters.cs
- X509ThumbprintKeyIdentifierClause.cs
- AssemblyBuilder.cs
- XmlChildEnumerator.cs
- XmlDownloadManager.cs
- ApplyHostConfigurationBehavior.cs
- CommonRemoteMemoryBlock.cs
- PrintDialog.cs
- Button.cs
- URLAttribute.cs
- KeyConverter.cs
- WorkflowFileItem.cs
- XmlSchemaType.cs
- XdrBuilder.cs
- MatchingStyle.cs
- newinstructionaction.cs
- Compiler.cs
- ConnectionsZoneDesigner.cs