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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ChannelSinkStacks.cs
- CompoundFileStorageReference.cs
- SafeNativeMethodsOther.cs
- SqlDataSource.cs
- CodeGen.cs
- WebPartConnectionCollection.cs
- ObjectQuery.cs
- EntityTypeEmitter.cs
- WorkflowServiceHost.cs
- AuthenticationConfig.cs
- HttpRequestCacheValidator.cs
- Evidence.cs
- ListViewPagedDataSource.cs
- AsyncResult.cs
- TransactionTable.cs
- UnitySerializationHolder.cs
- GridItem.cs
- QilName.cs
- OdbcConnectionOpen.cs
- GraphicsPathIterator.cs
- DependencyProperty.cs
- ExternalCalls.cs
- ListenerServiceInstallComponent.cs
- ToolStripPanelRenderEventArgs.cs
- CompatibleIComparer.cs
- ZipIOBlockManager.cs
- AlternateView.cs
- MatrixTransform3D.cs
- SafeNativeMethodsMilCoreApi.cs
- SmiMetaDataProperty.cs
- DesigntimeLicenseContext.cs
- WebUtil.cs
- MergablePropertyAttribute.cs
- ExpandoObject.cs
- UnionCqlBlock.cs
- regiisutil.cs
- SizeConverter.cs
- AuthenticodeSignatureInformation.cs
- JpegBitmapDecoder.cs
- AsyncStreamReader.cs
- ButtonBaseAutomationPeer.cs
- WindowsTooltip.cs
- IndexedEnumerable.cs
- StateMachineWorkflowDesigner.cs
- ErrorItem.cs
- PriorityChain.cs
- FacetChecker.cs
- ServiceElementCollection.cs
- ZipFileInfoCollection.cs
- TextEffectResolver.cs
- NumericExpr.cs
- WebZone.cs
- CommandTreeTypeHelper.cs
- CompiledQueryCacheKey.cs
- DependentTransaction.cs
- IndexerNameAttribute.cs
- SiteMapSection.cs
- GroupBox.cs
- EpmSyndicationContentSerializer.cs
- MimeMapping.cs
- ConnectionConsumerAttribute.cs
- NamespaceInfo.cs
- DataServiceRequest.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- TextDecoration.cs
- XmlObjectSerializerWriteContext.cs
- AsmxEndpointPickerExtension.cs
- UnsafeNativeMethods.cs
- ServerType.cs
- ListControlBuilder.cs
- Operators.cs
- CollectionDataContract.cs
- DateTimeOffsetConverter.cs
- ReferenceService.cs
- CellTreeNodeVisitors.cs
- DataComponentGenerator.cs
- PassportAuthenticationEventArgs.cs
- ClientTarget.cs
- CodeFieldReferenceExpression.cs
- GridViewHeaderRowPresenter.cs
- TextBox.cs
- EncoderBestFitFallback.cs
- CallSiteOps.cs
- WorkflowServiceHostFactory.cs
- SerializationException.cs
- BinaryFormatterSinks.cs
- XmlNodeWriter.cs
- wgx_sdk_version.cs
- OleDbDataAdapter.cs
- FreeFormPanel.cs
- UndoUnit.cs
- UserValidatedEventArgs.cs
- DataGridViewUtilities.cs
- GridViewColumnHeader.cs
- EFDataModelProvider.cs
- ProxySimple.cs
- FormsAuthenticationModule.cs
- ExpressionBuilder.cs
- XmlIgnoreAttribute.cs
- XPathException.cs