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
- WbmpConverter.cs
- _NetworkingPerfCounters.cs
- SoapMessage.cs
- String.cs
- GroupQuery.cs
- AuthorizationSection.cs
- SystemParameters.cs
- ColorConvertedBitmap.cs
- MatrixTransform3D.cs
- PathParser.cs
- KeySpline.cs
- PasswordDeriveBytes.cs
- TextOutput.cs
- Pkcs7Signer.cs
- TrustManager.cs
- PassportIdentity.cs
- TextElementEnumerator.cs
- RowUpdatedEventArgs.cs
- EmptyEnumerator.cs
- UndoManager.cs
- Activation.cs
- ObjectHelper.cs
- CategoriesDocument.cs
- WindowsScroll.cs
- GridViewColumnCollectionChangedEventArgs.cs
- FactoryRecord.cs
- StylusTip.cs
- ProxySimple.cs
- WorkflowServiceHostFactory.cs
- LogSwitch.cs
- CommentEmitter.cs
- Hashtable.cs
- XmlSerializationGeneratedCode.cs
- BreakRecordTable.cs
- DataControlButton.cs
- ContentFilePart.cs
- IndentedTextWriter.cs
- OdbcStatementHandle.cs
- DropAnimation.xaml.cs
- XmlTypeMapping.cs
- AbstractExpressions.cs
- ListInitExpression.cs
- ConfigurationValidatorBase.cs
- XmlILOptimizerVisitor.cs
- DateTimeValueSerializerContext.cs
- SystemGatewayIPAddressInformation.cs
- StringSource.cs
- Viewport3DAutomationPeer.cs
- ColorConverter.cs
- DataGridViewCellValueEventArgs.cs
- ReferencedCollectionType.cs
- CorePropertiesFilter.cs
- CodeSnippetTypeMember.cs
- LayoutEngine.cs
- ImageButton.cs
- StylusSystemGestureEventArgs.cs
- SystemNetworkInterface.cs
- ClientSideProviderDescription.cs
- ScopelessEnumAttribute.cs
- RequiredAttributeAttribute.cs
- CreatingCookieEventArgs.cs
- InkCanvas.cs
- DataGridViewToolTip.cs
- HtmlElement.cs
- MouseOverProperty.cs
- HtmlElement.cs
- MailMessageEventArgs.cs
- HuffCodec.cs
- NameValueFileSectionHandler.cs
- FolderBrowserDialogDesigner.cs
- BitmapEncoder.cs
- RepeaterCommandEventArgs.cs
- CustomPopupPlacement.cs
- MembershipValidatePasswordEventArgs.cs
- BaseProcessor.cs
- MultipartIdentifier.cs
- ButtonChrome.cs
- WindowClosedEventArgs.cs
- TextTrailingWordEllipsis.cs
- Boolean.cs
- Vector3DAnimationBase.cs
- ButtonBaseAdapter.cs
- DataContext.cs
- FilterableAttribute.cs
- DocumentApplication.cs
- SafeUserTokenHandle.cs
- CollectionViewSource.cs
- UniqueEventHelper.cs
- TCEAdapterGenerator.cs
- SettingsPropertyValue.cs
- VisualBasicSettingsHandler.cs
- OdbcError.cs
- ReflectionPermission.cs
- XmlAutoDetectWriter.cs
- DataGridViewColumnConverter.cs
- FillErrorEventArgs.cs
- PlatformCulture.cs
- IResourceProvider.cs
- GridViewRowCollection.cs
- TextTreeNode.cs