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
- TypeForwardedToAttribute.cs
- ConnectionOrientedTransportElement.cs
- BuilderElements.cs
- SafeProcessHandle.cs
- XAMLParseException.cs
- NameScopePropertyAttribute.cs
- ClientTargetCollection.cs
- UpdateRecord.cs
- OperationCanceledException.cs
- InstallerTypeAttribute.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TabControlCancelEvent.cs
- TableChangeProcessor.cs
- System.Data_BID.cs
- TCPListener.cs
- CodeConditionStatement.cs
- RemoteWebConfigurationHost.cs
- HMACSHA512.cs
- MarshalByRefObject.cs
- Slider.cs
- CultureInfo.cs
- BinHexDecoder.cs
- _Events.cs
- EventLogPermissionEntry.cs
- brushes.cs
- FlagsAttribute.cs
- XmlSchemaExternal.cs
- StorageRoot.cs
- SmiRequestExecutor.cs
- AnonymousIdentificationSection.cs
- BaseUriHelper.cs
- CrossSiteScriptingValidation.cs
- SqlWriter.cs
- SrgsDocument.cs
- ProxySimple.cs
- X509SecurityToken.cs
- BasicHttpBindingElement.cs
- SystemIPGlobalProperties.cs
- EnumConverter.cs
- DesignerProperties.cs
- MarshalByValueComponent.cs
- HtmlButton.cs
- ContentValidator.cs
- StackSpiller.cs
- AppSecurityManager.cs
- latinshape.cs
- CroppedBitmap.cs
- RTLAwareMessageBox.cs
- ScalarOps.cs
- InitialServerConnectionReader.cs
- DataContractJsonSerializer.cs
- NextPreviousPagerField.cs
- GuidelineCollection.cs
- RuleSettings.cs
- NavigationHelper.cs
- cookiecollection.cs
- LicenseProviderAttribute.cs
- ObjectParameter.cs
- WinFormsSecurity.cs
- HtmlForm.cs
- AnnotationComponentChooser.cs
- SessionEndedEventArgs.cs
- VirtualizingPanel.cs
- XhtmlTextWriter.cs
- SQLString.cs
- _Events.cs
- GlobalProxySelection.cs
- Simplifier.cs
- DbConnectionPool.cs
- WebHttpEndpointElement.cs
- ClientSideQueueItem.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- StreamAsIStream.cs
- OutgoingWebRequestContext.cs
- SaveFileDialog.cs
- BinaryParser.cs
- Visual.cs
- SpotLight.cs
- MasterPageParser.cs
- HotSpot.cs
- WebSysDescriptionAttribute.cs
- PointCollection.cs
- ClientData.cs
- CodeArgumentReferenceExpression.cs
- SafeNativeMethods.cs
- CryptoProvider.cs
- Vector3DIndependentAnimationStorage.cs
- XmlHelper.cs
- WebConfigurationFileMap.cs
- DataGridViewCellPaintingEventArgs.cs
- ListViewDeleteEventArgs.cs
- StorageConditionPropertyMapping.cs
- UrlAuthFailedErrorFormatter.cs
- RuntimeComponentFilter.cs
- PermissionAttributes.cs
- PartBasedPackageProperties.cs
- SiteOfOriginPart.cs
- LogSwitch.cs
- XamlClipboardData.cs
- FormatterConverter.cs