Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } }/// 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
- SourceElementsCollection.cs
- Content.cs
- ResumeStoryboard.cs
- MessageParameterAttribute.cs
- ProxyDataContractResolver.cs
- ByteViewer.cs
- Monitor.cs
- TextDecorationCollectionConverter.cs
- ApplicationDirectoryMembershipCondition.cs
- MethodRental.cs
- TextRunProperties.cs
- ActivityDesigner.cs
- XmlSchemaComplexContent.cs
- TypeDependencyAttribute.cs
- EntityAdapter.cs
- ScriptModule.cs
- HttpResponseHeader.cs
- MailAddress.cs
- MachineSettingsSection.cs
- BounceEase.cs
- DbUpdateCommandTree.cs
- WSSecurityPolicy11.cs
- Attribute.cs
- ModelEditingScope.cs
- RootProfilePropertySettingsCollection.cs
- TableRow.cs
- XmlSchemaAttributeGroup.cs
- XmlDocument.cs
- TerminateSequenceResponse.cs
- XsdDataContractExporter.cs
- NamedObject.cs
- PingOptions.cs
- WmlValidatorAdapter.cs
- RuleSettings.cs
- TextFindEngine.cs
- AmbientProperties.cs
- MachineKeyConverter.cs
- OleDbPermission.cs
- StaticDataManager.cs
- FrameworkPropertyMetadata.cs
- MasterPage.cs
- TextSegment.cs
- InvalidCommandTreeException.cs
- Int64Converter.cs
- WebRequest.cs
- XamlRtfConverter.cs
- ToolStripCollectionEditor.cs
- WindowsToolbarItemAsMenuItem.cs
- X509Certificate2Collection.cs
- Tile.cs
- SingleAnimation.cs
- ImpersonateTokenRef.cs
- SqlUtils.cs
- PersistenceProviderBehavior.cs
- ServicesUtilities.cs
- EventEntry.cs
- SqlUserDefinedAggregateAttribute.cs
- ZipIOExtraField.cs
- ContentAlignmentEditor.cs
- StylusButtonEventArgs.cs
- DockAndAnchorLayout.cs
- Registry.cs
- FontSource.cs
- IPCCacheManager.cs
- ClaimTypes.cs
- IDictionary.cs
- EncodingNLS.cs
- PassportIdentity.cs
- TimerExtension.cs
- ActivationArguments.cs
- CommandManager.cs
- EllipseGeometry.cs
- HtmlPanelAdapter.cs
- Underline.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- ConfigurationCollectionAttribute.cs
- HtmlTable.cs
- DependencyProperty.cs
- GrammarBuilderPhrase.cs
- NonSerializedAttribute.cs
- ProcessHostMapPath.cs
- SimpleTypeResolver.cs
- TransformPatternIdentifiers.cs
- Keywords.cs
- MissingManifestResourceException.cs
- ValidationRuleCollection.cs
- EncodingInfo.cs
- CharAnimationUsingKeyFrames.cs
- BindingCompleteEventArgs.cs
- XmlSchemaObjectTable.cs
- PathFigure.cs
- AutoGeneratedField.cs
- SliderAutomationPeer.cs
- Function.cs
- ObjectHandle.cs
- EndpointNotFoundException.cs
- LinqDataSourceContextEventArgs.cs
- ClusterSafeNativeMethods.cs
- TextSchema.cs
- safemediahandle.cs