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
- MimeFormReflector.cs
- InheritanceAttribute.cs
- TreeViewEvent.cs
- Rotation3DAnimation.cs
- ServicePointManagerElement.cs
- CreateUserWizardDesigner.cs
- DesignOnlyAttribute.cs
- InheritanceService.cs
- SqlDataReaderSmi.cs
- EventData.cs
- ADMembershipProvider.cs
- _ProxyChain.cs
- VariableValue.cs
- ProfileElement.cs
- CurrencyWrapper.cs
- OptimisticConcurrencyException.cs
- RawUIStateInputReport.cs
- MachineKey.cs
- XmlSecureResolver.cs
- MenuBase.cs
- Soap.cs
- CalendarDay.cs
- TableLayoutPanelCellPosition.cs
- Funcletizer.cs
- IntegerValidatorAttribute.cs
- ConfigXmlElement.cs
- HttpHandlerAction.cs
- SHA256Managed.cs
- EncoderNLS.cs
- ClonableStack.cs
- RepeatInfo.cs
- Propagator.cs
- HostingEnvironmentException.cs
- VirtualStackFrame.cs
- MenuCommand.cs
- CapacityStreamGeometryContext.cs
- followingquery.cs
- PeerNameResolver.cs
- QueryConverter.cs
- MLangCodePageEncoding.cs
- HyperLinkDataBindingHandler.cs
- ACL.cs
- TextControl.cs
- MultiSelectRootGridEntry.cs
- TextDecorationCollectionConverter.cs
- ConfigurationValidatorAttribute.cs
- XmlSchemaAny.cs
- TextTreeTextElementNode.cs
- TemplateBindingExpressionConverter.cs
- StringExpressionSet.cs
- SelectionProviderWrapper.cs
- WebPartUserCapability.cs
- DirtyTextRange.cs
- StyleSheetComponentEditor.cs
- BitmapEffectInputConnector.cs
- SystemUdpStatistics.cs
- DiagnosticTraceSource.cs
- XslCompiledTransform.cs
- StringUtil.cs
- QuaternionAnimation.cs
- CheckBoxFlatAdapter.cs
- Operators.cs
- DrawingContextWalker.cs
- DbInsertCommandTree.cs
- NamespaceListProperty.cs
- TransformedBitmap.cs
- DebuggerAttributes.cs
- UriTemplateDispatchFormatter.cs
- DataRecordObjectView.cs
- RowTypeElement.cs
- FlowDocumentReader.cs
- WorkflowValidationFailedException.cs
- WsatConfiguration.cs
- StringSource.cs
- ObjectStorage.cs
- Vector3dCollection.cs
- IPipelineRuntime.cs
- PropertyGridView.cs
- WebBrowserProgressChangedEventHandler.cs
- AudioBase.cs
- NullableConverter.cs
- TableLayoutCellPaintEventArgs.cs
- CommonObjectSecurity.cs
- Journaling.cs
- TextSpanModifier.cs
- OleDbConnectionInternal.cs
- LinkedResource.cs
- X509CertificateStore.cs
- ScrollContentPresenter.cs
- HttpHandlersSection.cs
- BindingSource.cs
- UncommonField.cs
- GuidelineCollection.cs
- PropertyItemInternal.cs
- HeaderCollection.cs
- SqlRecordBuffer.cs
- XmlAnyAttributeAttribute.cs
- XPathMessageFilterElementCollection.cs
- InvokePattern.cs
- COM2IVsPerPropertyBrowsingHandler.cs