Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DefaultEventAttribute.cs / 1305376 / DefaultEventAttribute.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 DefaultEventAttribute : Attribute { ///Specifies the default event for a /// component. ////// This is the default event name. /// private readonly string name; ////// public DefaultEventAttribute(string name) { this.name = name; } ////// Initializes /// a new instance of the ///class. /// /// public string Name { get { return name; } } ////// Gets the name of the default event for /// the component this attribute is bound to. /// ////// public static readonly DefaultEventAttribute Default = new DefaultEventAttribute(null); public override bool Equals(object obj) { DefaultEventAttribute other = obj as DefaultEventAttribute; 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
- ExclusiveTcpListener.cs
- StringCollection.cs
- EntityDataSourceEntitySetNameItem.cs
- ContactManager.cs
- CustomErrorCollection.cs
- DesignTimeTemplateParser.cs
- TableRow.cs
- PointHitTestParameters.cs
- OleDbDataReader.cs
- XmlMtomWriter.cs
- Nullable.cs
- Token.cs
- FilterEventArgs.cs
- PersistenceProviderDirectory.cs
- TypeUtil.cs
- ClientSession.cs
- ToolCreatedEventArgs.cs
- X509UI.cs
- ETagAttribute.cs
- OdbcUtils.cs
- EditingCoordinator.cs
- WebControlAdapter.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- PasswordBox.cs
- PropertyChangeTracker.cs
- DataGridViewRow.cs
- PeerContact.cs
- SourceItem.cs
- DPCustomTypeDescriptor.cs
- VariableQuery.cs
- DocumentXmlWriter.cs
- XmlQualifiedNameTest.cs
- ReflectionUtil.cs
- safemediahandle.cs
- NavigatorOutput.cs
- MinimizableAttributeTypeConverter.cs
- MenuCommand.cs
- TreeView.cs
- EventTask.cs
- OverrideMode.cs
- JsonDeserializer.cs
- HierarchicalDataBoundControl.cs
- Hashtable.cs
- StringTraceRecord.cs
- RegexRunnerFactory.cs
- WindowsRebar.cs
- StaticSiteMapProvider.cs
- CryptoStream.cs
- Fx.cs
- MimeTypeMapper.cs
- WindowsSolidBrush.cs
- X509Certificate2.cs
- CodeDirectoryCompiler.cs
- ClosableStream.cs
- ButtonFieldBase.cs
- AssociationProvider.cs
- ParallelTimeline.cs
- ResolveMatchesMessage11.cs
- WebPartTracker.cs
- TransportDefaults.cs
- ProjectionPathBuilder.cs
- ResourceManager.cs
- RowBinding.cs
- TextEffect.cs
- InvalidPipelineStoreException.cs
- DataExpression.cs
- KeyInterop.cs
- DependencyPropertyChangedEventArgs.cs
- InheritanceAttribute.cs
- XmlNamespaceDeclarationsAttribute.cs
- EventItfInfo.cs
- HotCommands.cs
- ProfileSettingsCollection.cs
- MsmqIntegrationInputMessage.cs
- backend.cs
- PartialTrustVisibleAssembly.cs
- BmpBitmapDecoder.cs
- EntityDataSourceStatementEditor.cs
- DecimalAverageAggregationOperator.cs
- InvokeMemberBinder.cs
- Avt.cs
- ValidationSummary.cs
- GeneralTransform3D.cs
- MetadataReference.cs
- RecognitionResult.cs
- StreamUpdate.cs
- Int32KeyFrameCollection.cs
- SlotInfo.cs
- LinqDataSourceValidationException.cs
- HtmlInputPassword.cs
- NetworkInformationException.cs
- ProxyManager.cs
- MouseEventArgs.cs
- Config.cs
- BinHexDecoder.cs
- PersonalizationState.cs
- TemplateContentLoader.cs
- ToolStripDropDownButton.cs
- ProtocolViolationException.cs
- Pts.cs