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
- ContentElement.cs
- EmptyQuery.cs
- UidManager.cs
- ExtensibleClassFactory.cs
- Base64Encoder.cs
- RegexStringValidatorAttribute.cs
- Utilities.cs
- CommandHelper.cs
- DataServiceContext.cs
- OleDbInfoMessageEvent.cs
- HtmlAnchor.cs
- LinearGradientBrush.cs
- ConfigurationPropertyCollection.cs
- URLBuilder.cs
- EventItfInfo.cs
- SettingsSection.cs
- TdsParser.cs
- RuntimeConfig.cs
- GraphicsState.cs
- DecimalStorage.cs
- IsolatedStorageFileStream.cs
- Switch.cs
- DecimalAnimation.cs
- ExpandSegmentCollection.cs
- HttpCookie.cs
- FrameworkElement.cs
- XmlAttribute.cs
- EpmSourceTree.cs
- SecUtil.cs
- HybridDictionary.cs
- RuntimeTransactionHandle.cs
- TCPClient.cs
- TextLineResult.cs
- RowBinding.cs
- PrimitiveXmlSerializers.cs
- XmlUtil.cs
- DataGridViewCellPaintingEventArgs.cs
- XmlCharacterData.cs
- AcceleratedTokenProvider.cs
- XmlQueryOutput.cs
- SqlCharStream.cs
- ObjectAssociationEndMapping.cs
- DataGridViewBand.cs
- LightweightCodeGenerator.cs
- MouseEvent.cs
- ComEventsInfo.cs
- IndexedString.cs
- XsdBuildProvider.cs
- FacetEnabledSchemaElement.cs
- CaseStatement.cs
- SQLInt64.cs
- SocketAddress.cs
- XmlSchemaSimpleContentRestriction.cs
- SocketPermission.cs
- NullEntityWrapper.cs
- MemberDomainMap.cs
- TabControl.cs
- WindowsComboBox.cs
- PolicyVersionConverter.cs
- ActivityExecutionFilter.cs
- PagerSettings.cs
- PkcsUtils.cs
- SystemIcmpV6Statistics.cs
- PlatformNotSupportedException.cs
- DataGridHeaderBorder.cs
- ObjectMemberMapping.cs
- WindowsListViewGroupHelper.cs
- regiisutil.cs
- AtomMaterializer.cs
- DateTimeFormatInfoScanner.cs
- OrderedDictionaryStateHelper.cs
- OdbcHandle.cs
- SinglePhaseEnlistment.cs
- ToolConsole.cs
- tooltip.cs
- Camera.cs
- UrlPath.cs
- TextTabProperties.cs
- AsynchronousChannel.cs
- EngineSiteSapi.cs
- JapaneseLunisolarCalendar.cs
- Base64Decoder.cs
- SecurityIdentifierElementCollection.cs
- SignedXmlDebugLog.cs
- SR.cs
- MetadataArtifactLoaderResource.cs
- CustomError.cs
- BindingGroup.cs
- AnonymousIdentificationModule.cs
- SamlAuthenticationStatement.cs
- Config.cs
- OracleBinary.cs
- PhysicalAddress.cs
- WebBrowserSiteBase.cs
- SelectionProcessor.cs
- SafeEventLogWriteHandle.cs
- LinearKeyFrames.cs
- XamlInt32CollectionSerializer.cs
- GridEntryCollection.cs
- PersonalizationStateInfoCollection.cs