Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- MsdtcWrapper.cs
- XomlCompilerHelpers.cs
- FolderLevelBuildProviderCollection.cs
- SQLInt32.cs
- TablePattern.cs
- XamlStream.cs
- GroupBoxAutomationPeer.cs
- FixedSOMTable.cs
- TypeTypeConverter.cs
- LinkLabel.cs
- WindowsListViewSubItem.cs
- BitmapInitialize.cs
- Models.cs
- PointAnimationUsingPath.cs
- KeyedCollection.cs
- ProfileInfo.cs
- InputReport.cs
- UriTemplateMatchException.cs
- ConfigViewGenerator.cs
- KeysConverter.cs
- SimpleFileLog.cs
- MarshalByRefObject.cs
- dtdvalidator.cs
- ChannelServices.cs
- ObjectStateManagerMetadata.cs
- DbConnectionPoolCounters.cs
- categoryentry.cs
- OdbcEnvironment.cs
- SqlDataSourceCache.cs
- Cell.cs
- DynamicActionMessageFilter.cs
- QilVisitor.cs
- GridViewRowPresenterBase.cs
- cryptoapiTransform.cs
- WebPartHeaderCloseVerb.cs
- TextBoxBase.cs
- PhysicalOps.cs
- WebBrowserHelper.cs
- UrlMapping.cs
- ToolStripDropDownClosedEventArgs.cs
- Keywords.cs
- DecoderFallback.cs
- ZipArchive.cs
- DataList.cs
- StateWorkerRequest.cs
- PartialToken.cs
- SqlProviderManifest.cs
- MimeMapping.cs
- ExpressionTextBox.xaml.cs
- ListViewHitTestInfo.cs
- SortAction.cs
- ObjectRef.cs
- Globals.cs
- PeerOutputChannel.cs
- OdbcException.cs
- CellPartitioner.cs
- DocumentScope.cs
- SurrogateSelector.cs
- ValidationError.cs
- _IPv4Address.cs
- BooleanExpr.cs
- RegionIterator.cs
- MLangCodePageEncoding.cs
- GridViewRowPresenterBase.cs
- BamlBinaryReader.cs
- Deflater.cs
- Literal.cs
- PlainXmlDeserializer.cs
- ContextProperty.cs
- TimelineClockCollection.cs
- MouseActionConverter.cs
- SiteMapNodeItemEventArgs.cs
- Rotation3DKeyFrameCollection.cs
- RecommendedAsConfigurableAttribute.cs
- OracleBinary.cs
- XmlSchemaComplexContentRestriction.cs
- InternalBufferOverflowException.cs
- ProfilePropertyNameValidator.cs
- DefaultValueAttribute.cs
- SynchronizedDispatch.cs
- ControlUtil.cs
- EasingFunctionBase.cs
- LayoutInformation.cs
- StylusPlugInCollection.cs
- LiteralTextParser.cs
- Table.cs
- WCFBuildProvider.cs
- BitmapEffectGeneralTransform.cs
- EnumConverter.cs
- NativeObjectSecurity.cs
- InputLanguageManager.cs
- DetailsViewDeleteEventArgs.cs
- PropertyBuilder.cs
- MailMessage.cs
- CatalogPart.cs
- LinearGradientBrush.cs
- Vector3DIndependentAnimationStorage.cs
- Solver.cs
- TextServicesPropertyRanges.cs
- ClientOperation.cs