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
- FormViewPagerRow.cs
- BooleanFunctions.cs
- CheckBoxAutomationPeer.cs
- TransactionsSectionGroup.cs
- UrlPath.cs
- SqlNodeAnnotations.cs
- XmlSortKey.cs
- xdrvalidator.cs
- NavigationPropertyEmitter.cs
- DoubleSumAggregationOperator.cs
- DbgCompiler.cs
- NameTable.cs
- Configuration.cs
- CodeLinePragma.cs
- RegistryKey.cs
- ReaderWriterLockWrapper.cs
- LogReservationCollection.cs
- XmlHierarchyData.cs
- MethodRental.cs
- Style.cs
- diagnosticsswitches.cs
- SqlBuilder.cs
- XmlJsonWriter.cs
- OdbcConnectionString.cs
- XmlDataSource.cs
- XmlBaseWriter.cs
- HybridDictionary.cs
- _AutoWebProxyScriptWrapper.cs
- DBCommandBuilder.cs
- ToReply.cs
- VisualStates.cs
- SevenBitStream.cs
- _NtlmClient.cs
- ClassHandlersStore.cs
- x509store.cs
- Invariant.cs
- ObjectDataSourceEventArgs.cs
- SmtpReplyReader.cs
- Decoder.cs
- DesignerSerializationOptionsAttribute.cs
- CultureInfo.cs
- XmlAttributeOverrides.cs
- SourceLineInfo.cs
- ImageMetadata.cs
- Funcletizer.cs
- PixelFormats.cs
- MSAAWinEventWrap.cs
- HtmlTableRow.cs
- FixedTextPointer.cs
- XmlSchemaProviderAttribute.cs
- DataGridViewCheckBoxCell.cs
- WindowsSecurityToken.cs
- DataControlField.cs
- BindingExpression.cs
- QilBinary.cs
- compensatingcollection.cs
- XmlSerializerNamespaces.cs
- Roles.cs
- DataGridViewCellConverter.cs
- GenericQueueSurrogate.cs
- WindowsImpersonationContext.cs
- ComMethodElementCollection.cs
- PriorityItem.cs
- _SSPISessionCache.cs
- DataRowCollection.cs
- SmiGettersStream.cs
- RtfControls.cs
- SafeArchiveContext.cs
- ZipFileInfo.cs
- DragEvent.cs
- ReadOnlyAttribute.cs
- PointF.cs
- HttpRequestBase.cs
- GlyphShapingProperties.cs
- OrderPreservingSpoolingTask.cs
- input.cs
- ItemAutomationPeer.cs
- InvokeProviderWrapper.cs
- CompressedStack.cs
- DataServiceResponse.cs
- SharedRuntimeState.cs
- NotImplementedException.cs
- PenCursorManager.cs
- TcpHostedTransportConfiguration.cs
- DesignColumnCollection.cs
- FormsAuthenticationTicket.cs
- DropDownButton.cs
- ListItem.cs
- XmlILTrace.cs
- TextFindEngine.cs
- Menu.cs
- VsPropertyGrid.cs
- Ray3DHitTestResult.cs
- DependencyObjectType.cs
- AxHost.cs
- ImpersonateTokenRef.cs
- DataSourceSelectArguments.cs
- ColumnResult.cs
- PageSettings.cs
- CookieProtection.cs