Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- WorkflowElementDialog.cs
- CultureInfoConverter.cs
- TableChangeProcessor.cs
- AbandonedMutexException.cs
- InheritanceContextChangedEventManager.cs
- MessageFault.cs
- PersistStreamTypeWrapper.cs
- FormClosedEvent.cs
- MILUtilities.cs
- SqlResolver.cs
- HtmlInputReset.cs
- StateDesigner.CommentLayoutGlyph.cs
- HttpModuleCollection.cs
- TextElementCollectionHelper.cs
- SubMenuStyle.cs
- HelloOperationAsyncResult.cs
- DiscoveryDocumentReference.cs
- DataContractAttribute.cs
- TextParagraph.cs
- X509CertificateRecipientServiceCredential.cs
- EpmSourceTree.cs
- PropertyInfoSet.cs
- NavigatorInput.cs
- VerticalAlignConverter.cs
- MessageSecurityVersion.cs
- ProcessModelSection.cs
- SystemResourceHost.cs
- ResourceDisplayNameAttribute.cs
- SerializationBinder.cs
- dtdvalidator.cs
- BitmapData.cs
- ListSourceHelper.cs
- Pool.cs
- EraserBehavior.cs
- ProtectedConfigurationSection.cs
- WorkflowInstanceProvider.cs
- SelectionProviderWrapper.cs
- ObjectDataSourceView.cs
- ApplicationTrust.cs
- InteropDesigner.xaml.cs
- RMPublishingDialog.cs
- InternalsVisibleToAttribute.cs
- ToolStripSettings.cs
- BufferedStream.cs
- XmlRootAttribute.cs
- TextEditorMouse.cs
- RelatedEnd.cs
- XmlAnyElementAttributes.cs
- RegisteredExpandoAttribute.cs
- MouseDevice.cs
- UniqueTransportManagerRegistration.cs
- Registry.cs
- FileNotFoundException.cs
- ProfilePropertyNameValidator.cs
- InvariantComparer.cs
- SettingsBindableAttribute.cs
- TextParaLineResult.cs
- LogWriteRestartAreaState.cs
- WebConfigurationManager.cs
- SourceChangedEventArgs.cs
- AtlasWeb.Designer.cs
- ResourcePart.cs
- ProtocolsConfigurationEntry.cs
- TextServicesContext.cs
- ShaderEffect.cs
- CheckedPointers.cs
- X509CertificateTrustedIssuerElementCollection.cs
- XhtmlBasicValidatorAdapter.cs
- ViewEvent.cs
- SystemUdpStatistics.cs
- OutOfMemoryException.cs
- InterleavedZipPartStream.cs
- ConfigurationStrings.cs
- SqlCharStream.cs
- TextMetrics.cs
- RemoteWebConfigurationHost.cs
- Pen.cs
- PropertyPath.cs
- BasicHttpMessageSecurityElement.cs
- ProfileProvider.cs
- ThreadAttributes.cs
- CultureInfo.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ObjectStorage.cs
- HttpWebRequestElement.cs
- RowParagraph.cs
- NetworkInformationPermission.cs
- UdpDiscoveryEndpointElement.cs
- HtmlEncodedRawTextWriter.cs
- ListItemConverter.cs
- HtmlImageAdapter.cs
- SqlTypeConverter.cs
- ColumnMapVisitor.cs
- UdpContractFilterBehavior.cs
- GPPOINT.cs
- ContentDisposition.cs
- AudioFormatConverter.cs
- ConfigurationPropertyCollection.cs
- ModifierKeysConverter.cs
- ClientOptions.cs