Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DefaultPropertyAttribute.cs / 1305376 / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UniformGrid.cs
- TargetException.cs
- UInt32Storage.cs
- RectKeyFrameCollection.cs
- DataGridViewComboBoxCell.cs
- login.cs
- ThreadInterruptedException.cs
- CodeTypeDelegate.cs
- TransformBlockRequest.cs
- SqlDataSourceSelectingEventArgs.cs
- AsyncStreamReader.cs
- ParseNumbers.cs
- HierarchicalDataSourceIDConverter.cs
- PageWrapper.cs
- HttpWebRequestElement.cs
- SizeConverter.cs
- VirtualizingPanel.cs
- SetIndexBinder.cs
- GreenMethods.cs
- serverconfig.cs
- CookieParameter.cs
- RectAnimationClockResource.cs
- DataGridViewSelectedRowCollection.cs
- ReflectionUtil.cs
- ModuleElement.cs
- SessionStateSection.cs
- TransformationRules.cs
- XmlSchemaInclude.cs
- PropertyEntry.cs
- RegionIterator.cs
- PassportAuthenticationEventArgs.cs
- RelatedImageListAttribute.cs
- SqlDataSourceCache.cs
- ReferencedCategoriesDocument.cs
- TextElement.cs
- ListenerChannelContext.cs
- XmlDataCollection.cs
- XmlSerializerNamespaces.cs
- DescendentsWalkerBase.cs
- XXXInfos.cs
- XmlSerializerSection.cs
- UnknownBitmapDecoder.cs
- StateChangeEvent.cs
- GZipStream.cs
- SecurityUtils.cs
- basevalidator.cs
- CommonGetThemePartSize.cs
- JsonGlobals.cs
- AttributeXamlType.cs
- GeneralTransform.cs
- FormClosedEvent.cs
- TextDecorationCollection.cs
- VirtualDirectoryMapping.cs
- HotSpotCollectionEditor.cs
- Vector3DKeyFrameCollection.cs
- Set.cs
- Tokenizer.cs
- CodeSubDirectory.cs
- Pair.cs
- StringFormat.cs
- DbConnectionStringCommon.cs
- UriScheme.cs
- ToolTipService.cs
- DrawListViewColumnHeaderEventArgs.cs
- MemberAccessException.cs
- PersonalizationStateInfoCollection.cs
- TextSegment.cs
- TemplateEditingVerb.cs
- ResourceDisplayNameAttribute.cs
- SettingsBindableAttribute.cs
- TreeWalker.cs
- IsolatedStorageSecurityState.cs
- DbConnectionFactory.cs
- QueryableDataSourceEditData.cs
- Highlights.cs
- LinqDataSourceUpdateEventArgs.cs
- GPPOINT.cs
- EventLogLink.cs
- TextRenderer.cs
- NotImplementedException.cs
- IisTraceListener.cs
- PersonalizationEntry.cs
- PrincipalPermission.cs
- SynchronizationLockException.cs
- ProtocolsSection.cs
- SelectionPattern.cs
- EmbeddedMailObject.cs
- GrabHandleGlyph.cs
- InputMethod.cs
- SerializationException.cs
- HostExecutionContextManager.cs
- VolatileEnlistmentMultiplexing.cs
- GridViewPageEventArgs.cs
- ImageBrush.cs
- WebBrowserSiteBase.cs
- GeometryCollection.cs
- WeakReferenceList.cs
- DefaultPropertiesToSend.cs
- HttpListenerPrefixCollection.cs
- RewritingValidator.cs