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
- ContentIterators.cs
- CultureInfoConverter.cs
- PenLineCapValidation.cs
- ControlAdapter.cs
- HtmlInputSubmit.cs
- TypeExtensionConverter.cs
- Message.cs
- TaiwanCalendar.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DirectoryNotFoundException.cs
- TextRunCacheImp.cs
- SqlClientMetaDataCollectionNames.cs
- XmlIncludeAttribute.cs
- RefreshEventArgs.cs
- BoolExpression.cs
- ForEachAction.cs
- WebBrowserEvent.cs
- NavigationProgressEventArgs.cs
- Html32TextWriter.cs
- QueryCreatedEventArgs.cs
- TabItemAutomationPeer.cs
- Buffer.cs
- BamlTreeNode.cs
- QuaternionAnimation.cs
- PointConverter.cs
- SizeIndependentAnimationStorage.cs
- Section.cs
- LinearKeyFrames.cs
- DeviceContexts.cs
- SafeThemeHandle.cs
- JsonClassDataContract.cs
- WebScriptEnablingElement.cs
- RequestTimeoutManager.cs
- GrammarBuilder.cs
- XpsDocument.cs
- ObjectHandle.cs
- ThemeDictionaryExtension.cs
- OneOfElement.cs
- SqlMetaData.cs
- Canvas.cs
- TemplatePropertyEntry.cs
- httpserverutility.cs
- XPathDescendantIterator.cs
- QilDataSource.cs
- DeviceSpecificChoice.cs
- SendAgentStatusRequest.cs
- CodeBlockBuilder.cs
- PolicyUtility.cs
- Dispatcher.cs
- Int64.cs
- EndpointDiscoveryMetadataCD1.cs
- TreeNodeClickEventArgs.cs
- DebuggerAttributes.cs
- GridPattern.cs
- SettingsBase.cs
- UrlPropertyAttribute.cs
- TransformCollection.cs
- TemplateControlCodeDomTreeGenerator.cs
- ExpressionParser.cs
- DeviceContext.cs
- ToolStripItemEventArgs.cs
- ContainerAction.cs
- XmlObjectSerializerWriteContext.cs
- SqlVisitor.cs
- SendMailErrorEventArgs.cs
- ObjectConverter.cs
- ScopelessEnumAttribute.cs
- EncodingFallbackAwareXmlTextWriter.cs
- EdmConstants.cs
- HatchBrush.cs
- ProfilePropertyMetadata.cs
- SparseMemoryStream.cs
- EnumValidator.cs
- Brushes.cs
- ISessionStateStore.cs
- XmlSchemaAttributeGroup.cs
- StrongNamePublicKeyBlob.cs
- DeclarativeExpressionConditionDeclaration.cs
- PolicyManager.cs
- ClientSponsor.cs
- HtmlValidationSummaryAdapter.cs
- Section.cs
- ResolvedKeyFrameEntry.cs
- NetPeerTcpBinding.cs
- CodePageEncoding.cs
- BindingCollection.cs
- SafeNativeMethodsMilCoreApi.cs
- Transform.cs
- State.cs
- WsatConfiguration.cs
- InkSerializer.cs
- ManipulationVelocities.cs
- NameScope.cs
- ConnectionProviderAttribute.cs
- ContainerParagraph.cs
- SequenceRangeCollection.cs
- EventDescriptorCollection.cs
- RemoveStoryboard.cs
- DataGridColumnCollection.cs
- DropShadowBitmapEffect.cs