Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DefaultBindingPropertyAttribute.cs / 1305376 / 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
- CompositeActivityValidator.cs
- DataService.cs
- SqlConnectionString.cs
- DockPattern.cs
- Label.cs
- TypeConverter.cs
- CharUnicodeInfo.cs
- TraceUtility.cs
- DataGridHyperlinkColumn.cs
- Menu.cs
- EasingKeyFrames.cs
- HandlerMappingMemo.cs
- WorkflowViewService.cs
- BCLDebug.cs
- DrawListViewItemEventArgs.cs
- Stackframe.cs
- Int32Converter.cs
- securitycriticaldata.cs
- IResourceProvider.cs
- DiscoveryDocumentSerializer.cs
- ValueUnavailableException.cs
- WebPartUtil.cs
- WindowsComboBox.cs
- TypeDependencyAttribute.cs
- FileAuthorizationModule.cs
- SessionStateSection.cs
- FontSource.cs
- TransformerTypeCollection.cs
- AmbientProperties.cs
- MultiBinding.cs
- BatchParser.cs
- TabItemWrapperAutomationPeer.cs
- PageOutputQuality.cs
- ToolStripEditorManager.cs
- XmlDocumentType.cs
- SiteIdentityPermission.cs
- ProgressBarHighlightConverter.cs
- SecurityStateEncoder.cs
- CSharpCodeProvider.cs
- DataGridViewComboBoxColumn.cs
- TextRangeEditLists.cs
- WindowsTab.cs
- MetabaseServerConfig.cs
- HwndSource.cs
- ColumnCollectionEditor.cs
- ITreeGenerator.cs
- VBCodeProvider.cs
- SizeFConverter.cs
- SiteMapPath.cs
- DataTableCollection.cs
- CodeCatchClauseCollection.cs
- propertyentry.cs
- XmlMembersMapping.cs
- SystemWebCachingSectionGroup.cs
- CultureTableRecord.cs
- SystemTcpStatistics.cs
- ItemDragEvent.cs
- WorkflowApplicationCompletedEventArgs.cs
- HostedHttpContext.cs
- PeerCustomResolverElement.cs
- Knowncolors.cs
- OleAutBinder.cs
- SimpleHandlerFactory.cs
- TokenBasedSet.cs
- CmsInterop.cs
- ValidationRule.cs
- XmlTypeMapping.cs
- CheckBoxStandardAdapter.cs
- RoleBoolean.cs
- FormViewRow.cs
- FileNotFoundException.cs
- FixedFlowMap.cs
- DataGridViewSelectedCellCollection.cs
- CommentAction.cs
- TextElementEnumerator.cs
- SafeHandles.cs
- WebConvert.cs
- BooleanAnimationBase.cs
- RestHandlerFactory.cs
- DataBoundLiteralControl.cs
- Line.cs
- PriorityQueue.cs
- Helpers.cs
- Int32EqualityComparer.cs
- BlurBitmapEffect.cs
- ProcessHost.cs
- XmlHierarchyData.cs
- XmlNodeComparer.cs
- StateInitializationDesigner.cs
- TransformGroup.cs
- GregorianCalendar.cs
- ConfigXmlComment.cs
- NotifyIcon.cs
- SubMenuStyle.cs
- SafeEventLogWriteHandle.cs
- Function.cs
- DesignerAdapterAttribute.cs
- XmlBaseReader.cs
- ToolStripProgressBar.cs
- ObjectReferenceStack.cs