Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / DefaultPropertyAttribute.cs / 1 / DefaultPropertyAttribute.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 DefaultPropertyAttribute : Attribute { ///Specifies the default property for a component. ////// This is the default event name. /// private readonly string name; ////// public DefaultPropertyAttribute(string name) { this.name = name; } ////// Initializes a new instance of /// the ///class. /// /// public string Name { get { return name; } } ////// Gets the name of the default property for the component this attribute is /// bound to. /// ////// public static readonly DefaultPropertyAttribute Default = new DefaultPropertyAttribute(null); public override bool Equals(object obj) { DefaultPropertyAttribute other = obj as DefaultPropertyAttribute; 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 DefaultPropertyAttribute : Attribute { ///Specifies the default property for a component. ////// This is the default event name. /// private readonly string name; ////// public DefaultPropertyAttribute(string name) { this.name = name; } ////// Initializes a new instance of /// the ///class. /// /// public string Name { get { return name; } } ////// Gets the name of the default property for the component this attribute is /// bound to. /// ////// public static readonly DefaultPropertyAttribute Default = new DefaultPropertyAttribute(null); public override bool Equals(object obj) { DefaultPropertyAttribute other = obj as DefaultPropertyAttribute; 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
- ExeConfigurationFileMap.cs
- RoutedEventConverter.cs
- ResourcePool.cs
- TCPListener.cs
- SByte.cs
- Range.cs
- ConsumerConnectionPoint.cs
- CompositeControlDesigner.cs
- DocumentXmlWriter.cs
- DataGridViewUtilities.cs
- DoubleConverter.cs
- BigInt.cs
- ControlTemplate.cs
- XmlStrings.cs
- AuthorizationRule.cs
- XPathNavigatorKeyComparer.cs
- ToolStripArrowRenderEventArgs.cs
- RelationHandler.cs
- OleStrCAMarshaler.cs
- ServiceNameCollection.cs
- MarshalByRefObject.cs
- SqlStatistics.cs
- PeerSecurityHelpers.cs
- WindowCollection.cs
- XmlNamespaceManager.cs
- regiisutil.cs
- OutputCacheModule.cs
- NullPackagingPolicy.cs
- TableRow.cs
- Paragraph.cs
- Parser.cs
- ServiceSecurityAuditElement.cs
- ChangesetResponse.cs
- LassoSelectionBehavior.cs
- GeometryModel3D.cs
- TimelineCollection.cs
- OutKeywords.cs
- XmlSchemaCollection.cs
- HttpCapabilitiesEvaluator.cs
- DurableEnlistmentState.cs
- TextHidden.cs
- SapiRecoInterop.cs
- PropertyRecord.cs
- DataView.cs
- XmlQueryRuntime.cs
- DataBindingCollection.cs
- MultipleViewPatternIdentifiers.cs
- DocumentPageViewAutomationPeer.cs
- CodeSubDirectoriesCollection.cs
- CustomPeerResolverService.cs
- FixedTextSelectionProcessor.cs
- SpellCheck.cs
- QueryMath.cs
- RoleServiceManager.cs
- PagesChangedEventArgs.cs
- ApplicationInfo.cs
- StoreAnnotationsMap.cs
- SoapAttributeAttribute.cs
- TokenizerHelper.cs
- AssertSection.cs
- HttpCacheVary.cs
- WebCategoryAttribute.cs
- TextRangeSerialization.cs
- DES.cs
- CompilerError.cs
- CaseInsensitiveHashCodeProvider.cs
- PointHitTestResult.cs
- FlowDocumentView.cs
- Cursor.cs
- WebPageTraceListener.cs
- BuildManagerHost.cs
- Debug.cs
- AlphabeticalEnumConverter.cs
- WhitespaceReader.cs
- TextDecoration.cs
- ValueTable.cs
- Rect.cs
- DataGridViewSortCompareEventArgs.cs
- DateTimeFormat.cs
- ProjectionNode.cs
- BaseCodeDomTreeGenerator.cs
- SmtpNetworkElement.cs
- MetadataItemCollectionFactory.cs
- MatchingStyle.cs
- CalendarDateRangeChangingEventArgs.cs
- UnionQueryOperator.cs
- QueryStringParameter.cs
- SqlCommandBuilder.cs
- PagerSettings.cs
- glyphs.cs
- RectAnimationClockResource.cs
- TaskbarItemInfo.cs
- HtmlElementErrorEventArgs.cs
- CollectionChange.cs
- LinkLabelLinkClickedEvent.cs
- Image.cs
- ProfilePropertySettings.cs
- CompilerCollection.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ColumnTypeConverter.cs