Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DefaultBindingPropertyAttribute.cs / 1305376 / 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
- EncodingInfo.cs
- PasswordRecoveryAutoFormat.cs
- CharEntityEncoderFallback.cs
- NameValueConfigurationCollection.cs
- VsPropertyGrid.cs
- BinaryFormatterSinks.cs
- KeyConstraint.cs
- FixUpCollection.cs
- WebColorConverter.cs
- HostedElements.cs
- TopClause.cs
- SelectedDatesCollection.cs
- Serializer.cs
- ContextMenuStrip.cs
- CodeTypeReferenceExpression.cs
- BasicKeyConstraint.cs
- PrimitiveSchema.cs
- ProvidersHelper.cs
- Attributes.cs
- GridViewCellAutomationPeer.cs
- SimpleFieldTemplateUserControl.cs
- HttpRequestCacheValidator.cs
- DirtyTextRange.cs
- Events.cs
- HttpValueCollection.cs
- SemaphoreSecurity.cs
- TextBoxRenderer.cs
- HwndHostAutomationPeer.cs
- SchemaSetCompiler.cs
- ExpressionParser.cs
- PerformanceCounterPermissionEntryCollection.cs
- TaskExceptionHolder.cs
- DynamicUpdateCommand.cs
- _emptywebproxy.cs
- StrokeNodeEnumerator.cs
- FillBehavior.cs
- XamlReader.cs
- DocumentSequenceHighlightLayer.cs
- EmptyControlCollection.cs
- XmlDataDocument.cs
- DynamicResourceExtension.cs
- PartialTrustVisibleAssemblyCollection.cs
- WebPartDescription.cs
- CqlErrorHelper.cs
- SynchronousChannelMergeEnumerator.cs
- FaultContractAttribute.cs
- GAC.cs
- XmlTextReaderImplHelpers.cs
- HandleExceptionArgs.cs
- TemplateContent.cs
- EntityDataSourceDataSelection.cs
- ColumnReorderedEventArgs.cs
- SingleConverter.cs
- StrongTypingException.cs
- PopupRoot.cs
- ImportCatalogPart.cs
- BindMarkupExtensionSerializer.cs
- ResolveNameEventArgs.cs
- SvcMapFileLoader.cs
- Semaphore.cs
- IItemProperties.cs
- RequestCachePolicy.cs
- CharUnicodeInfo.cs
- XhtmlBasicObjectListAdapter.cs
- TextTreeFixupNode.cs
- ErrorFormatter.cs
- HtmlInputPassword.cs
- InlineCollection.cs
- BCryptHashAlgorithm.cs
- LinkLabel.cs
- FontSourceCollection.cs
- GetPageNumberCompletedEventArgs.cs
- GeneralTransform.cs
- PersistenceTask.cs
- _NativeSSPI.cs
- ValidationPropertyAttribute.cs
- DrawingAttributeSerializer.cs
- FacetValues.cs
- TypeListConverter.cs
- _SslState.cs
- ValueQuery.cs
- PersonalizationStateQuery.cs
- ColumnMap.cs
- SafeArrayTypeMismatchException.cs
- XmlMemberMapping.cs
- DropDownList.cs
- RegexCaptureCollection.cs
- DynamicResourceExtension.cs
- DockProviderWrapper.cs
- TemplatePagerField.cs
- BinaryConverter.cs
- _ConnectStream.cs
- DescendentsWalkerBase.cs
- OracleConnectionFactory.cs
- XmlNotation.cs
- TextControlDesigner.cs
- FloaterBaseParagraph.cs
- FormViewUpdatedEventArgs.cs
- Point3D.cs
- HttpProfileGroupBase.cs