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
- ToolStripDropDownButton.cs
- BooleanExpr.cs
- remotingproxy.cs
- TabOrder.cs
- XmlReflectionMember.cs
- StdValidatorsAndConverters.cs
- HtmlEncodedRawTextWriter.cs
- CollectionAdapters.cs
- TextParagraphView.cs
- HostingEnvironmentSection.cs
- PageTheme.cs
- ViewStateModeByIdAttribute.cs
- VisualStyleTypesAndProperties.cs
- XmlEncodedRawTextWriter.cs
- DataControlReferenceCollection.cs
- Point3DAnimationUsingKeyFrames.cs
- BindableTemplateBuilder.cs
- HashSetEqualityComparer.cs
- OLEDB_Util.cs
- DummyDataSource.cs
- SingleStorage.cs
- LongValidator.cs
- SchemaElementDecl.cs
- StorageInfo.cs
- OdbcInfoMessageEvent.cs
- RuntimeComponentFilter.cs
- EtwTrace.cs
- CodePageUtils.cs
- BitmapPalette.cs
- BasicKeyConstraint.cs
- TargetParameterCountException.cs
- EdmProperty.cs
- ProxyElement.cs
- MetabaseSettingsIis7.cs
- WebPartConnectionsCancelEventArgs.cs
- ColorMap.cs
- ServiceOperationParameter.cs
- DispatcherOperation.cs
- XappLauncher.cs
- DrawListViewItemEventArgs.cs
- X509CertificateInitiatorClientCredential.cs
- DataGridViewColumnCollectionEditor.cs
- CodeIterationStatement.cs
- DefaultBinder.cs
- Form.cs
- ProfileGroupSettings.cs
- ToolboxItemFilterAttribute.cs
- ScrollItemPatternIdentifiers.cs
- Avt.cs
- ImpersonateTokenRef.cs
- DropDownButton.cs
- Int32KeyFrameCollection.cs
- ConnectionConsumerAttribute.cs
- JavaScriptSerializer.cs
- DataGridViewAdvancedBorderStyle.cs
- CompilerWrapper.cs
- LoginName.cs
- OleDbConnection.cs
- BoundingRectTracker.cs
- GifBitmapEncoder.cs
- HashCodeCombiner.cs
- Single.cs
- ExceptionUtil.cs
- CompiledXpathExpr.cs
- FontFamily.cs
- MediaContextNotificationWindow.cs
- StartFileNameEditor.cs
- RepeaterCommandEventArgs.cs
- QilFactory.cs
- HttpCacheVaryByContentEncodings.cs
- ComPersistableTypeElementCollection.cs
- SortedList.cs
- ExpressionQuoter.cs
- XmlAttributeCollection.cs
- _NtlmClient.cs
- PackageRelationshipCollection.cs
- nulltextnavigator.cs
- LineMetrics.cs
- DescendentsWalkerBase.cs
- X509Extension.cs
- WindowsSysHeader.cs
- DataGridToolTip.cs
- DrawingVisualDrawingContext.cs
- PropertyGroupDescription.cs
- TextDecorationLocationValidation.cs
- CriticalFinalizerObject.cs
- GlyphTypeface.cs
- ClientType.cs
- LongValidatorAttribute.cs
- DocumentOrderQuery.cs
- AssemblyHash.cs
- StyleSheet.cs
- SmiSettersStream.cs
- TrackingMemoryStream.cs
- BrowserCapabilitiesFactoryBase.cs
- ObjectAssociationEndMapping.cs
- ListInitExpression.cs
- ManagedFilter.cs
- TypeToken.cs
- HttpCookiesSection.cs