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
- XmlILStorageConverter.cs
- FormsAuthenticationTicket.cs
- BevelBitmapEffect.cs
- IteratorDescriptor.cs
- ListViewEditEventArgs.cs
- StylusTip.cs
- QueryReaderSettings.cs
- DetailsView.cs
- GeneralTransformCollection.cs
- EndpointPerformanceCounters.cs
- DateTimePicker.cs
- RequestNavigateEventArgs.cs
- DataGridTableCollection.cs
- ObjectMemberMapping.cs
- EditorAttribute.cs
- SamlAuthorizationDecisionClaimResource.cs
- Content.cs
- CatalogPartChrome.cs
- VisualProxy.cs
- BasicKeyConstraint.cs
- TaskFormBase.cs
- XmlCharacterData.cs
- HttpGetClientProtocol.cs
- DiscoveryEndpointElement.cs
- ArraySet.cs
- AdornerLayer.cs
- TableColumn.cs
- OdbcParameter.cs
- System.Data_BID.cs
- TableLayoutColumnStyleCollection.cs
- TrackingAnnotationCollection.cs
- StandardToolWindows.cs
- Itemizer.cs
- IResourceProvider.cs
- WebServiceHandler.cs
- XmlEncodedRawTextWriter.cs
- HealthMonitoringSection.cs
- DocumentViewer.cs
- ExceptionUtil.cs
- BamlWriter.cs
- RTLAwareMessageBox.cs
- PageAsyncTask.cs
- EntityDataSourceContainerNameConverter.cs
- ConnectionPoolRegistry.cs
- InputLanguageCollection.cs
- RuleDefinitions.cs
- QuadraticBezierSegment.cs
- EntityException.cs
- TextBoxRenderer.cs
- StaticContext.cs
- ExceptionUtil.cs
- TableItemPattern.cs
- BufferBuilder.cs
- CodeExporter.cs
- MouseCaptureWithinProperty.cs
- MediaContext.cs
- WebPartAuthorizationEventArgs.cs
- __Error.cs
- ObjectStateManager.cs
- BindingList.cs
- ParserStreamGeometryContext.cs
- EventLogPermissionEntryCollection.cs
- XmlChildEnumerator.cs
- XmlSchemaInfo.cs
- DataGridViewCellStateChangedEventArgs.cs
- DocumentXmlWriter.cs
- GroupItemAutomationPeer.cs
- HttpSysSettings.cs
- HtmlContainerControl.cs
- SQLBytesStorage.cs
- SingleTagSectionHandler.cs
- WCFBuildProvider.cs
- EncoderFallback.cs
- BitmapPalettes.cs
- Match.cs
- HtmlTernaryTree.cs
- SendSecurityHeaderElementContainer.cs
- ChtmlFormAdapter.cs
- Separator.cs
- StylusDevice.cs
- XmlSchemaGroup.cs
- listitem.cs
- MobileListItemCollection.cs
- ErrorTableItemStyle.cs
- SafeRightsManagementPubHandle.cs
- Deflater.cs
- DeferredElementTreeState.cs
- TraceData.cs
- AddInBase.cs
- TreeNodeCollection.cs
- OutputCacheSection.cs
- RawUIStateInputReport.cs
- CompilerInfo.cs
- ExecutedRoutedEventArgs.cs
- IdentityVerifier.cs
- GroupStyle.cs
- GcSettings.cs
- DataTemplateKey.cs
- DateTimeOffsetAdapter.cs
- GridViewUpdatedEventArgs.cs