Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- VariableAction.cs
- SystemWebCachingSectionGroup.cs
- Visual.cs
- XmlReflectionImporter.cs
- LogStore.cs
- Debug.cs
- AmbiguousMatchException.cs
- SystemResources.cs
- Action.cs
- GetPageCompletedEventArgs.cs
- XmlDocumentType.cs
- EdmToObjectNamespaceMap.cs
- RtfControls.cs
- ChildrenQuery.cs
- ChannelTokenTypeConverter.cs
- ApplicationTrust.cs
- DbConnectionPoolGroup.cs
- HttpRequestWrapper.cs
- ReflectionTypeLoadException.cs
- IndicFontClient.cs
- PersonalizationProvider.cs
- EntityTemplateUserControl.cs
- Geometry3D.cs
- DataFieldConverter.cs
- DataObject.cs
- CurrentChangedEventManager.cs
- TablePattern.cs
- EditCommandColumn.cs
- SeekableReadStream.cs
- LoginCancelEventArgs.cs
- ScriptingAuthenticationServiceSection.cs
- AssemblyAssociatedContentFileAttribute.cs
- MenuAutomationPeer.cs
- XPathBinder.cs
- EntityContainerEmitter.cs
- _AcceptOverlappedAsyncResult.cs
- UndoUnit.cs
- NameTable.cs
- ModuleConfigurationInfo.cs
- ControlTemplate.cs
- ColorTransformHelper.cs
- PassportIdentity.cs
- mansign.cs
- PenThreadPool.cs
- SerializationFieldInfo.cs
- CompensationDesigner.cs
- XmlSchemaImport.cs
- TdsParserSafeHandles.cs
- SaveRecipientRequest.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- CodeTypeConstructor.cs
- MenuItemStyle.cs
- EventPropertyMap.cs
- ToolStripRenderer.cs
- coordinatorfactory.cs
- FormatPage.cs
- RelationHandler.cs
- QueryPageSettingsEventArgs.cs
- CFStream.cs
- RuntimeHandles.cs
- CatalogZoneBase.cs
- PermissionSetTriple.cs
- MenuEventArgs.cs
- VirtualDirectoryMappingCollection.cs
- XmlDictionary.cs
- CodeCommentStatementCollection.cs
- ContentHostHelper.cs
- AnimatedTypeHelpers.cs
- DictionaryChange.cs
- FacetDescriptionElement.cs
- ExpiredSecurityTokenException.cs
- XmlCodeExporter.cs
- DataGridLinkButton.cs
- EllipseGeometry.cs
- PageBreakRecord.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- IBuiltInEvidence.cs
- dsa.cs
- FullTextBreakpoint.cs
- Permission.cs
- IndexingContentUnit.cs
- BrushValueSerializer.cs
- RegexWorker.cs
- SqlDataSourceSelectingEventArgs.cs
- TabControlDesigner.cs
- Scheduler.cs
- ProfileEventArgs.cs
- ToolTipService.cs
- MultiTrigger.cs
- WindowHideOrCloseTracker.cs
- PassportAuthenticationModule.cs
- translator.cs
- ExpressionBuilder.cs
- SweepDirectionValidation.cs
- ClientFactory.cs
- filewebrequest.cs
- EmbeddedMailObject.cs
- ProcessRequestArgs.cs
- ListViewContainer.cs
- Material.cs