Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / DefaultEventAttribute.cs / 1 / 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(); } } }/// 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
- ThreadInterruptedException.cs
- Accessible.cs
- IHttpResponseInternal.cs
- AssemblyInfo.cs
- TextUtf8RawTextWriter.cs
- CompositionTarget.cs
- WmpBitmapDecoder.cs
- NameNode.cs
- StylusLogic.cs
- HtmlValidatorAdapter.cs
- TableLayoutSettings.cs
- DeferredTextReference.cs
- TextEffectResolver.cs
- ToggleButtonAutomationPeer.cs
- HashHelpers.cs
- StyleTypedPropertyAttribute.cs
- KeyInstance.cs
- DataKey.cs
- WindowsUpDown.cs
- ComAdminWrapper.cs
- HtmlEmptyTagControlBuilder.cs
- Attributes.cs
- DataGridCaption.cs
- Point4D.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- TextSerializer.cs
- Duration.cs
- FragmentQueryProcessor.cs
- TextTreeUndoUnit.cs
- SizeKeyFrameCollection.cs
- IListConverters.cs
- EntityViewGenerationAttribute.cs
- HttpDebugHandler.cs
- IUnknownConstantAttribute.cs
- BookmarkEventArgs.cs
- EncodingNLS.cs
- CounterCreationData.cs
- ConnectionManager.cs
- TypeUnloadedException.cs
- BitmapEffectOutputConnector.cs
- PointAnimationUsingPath.cs
- Int16Storage.cs
- VectorAnimation.cs
- DropShadowEffect.cs
- SqlCharStream.cs
- DbDataReader.cs
- SafeEventLogWriteHandle.cs
- ServiceObjectContainer.cs
- ExpressionBinding.cs
- BaseValidator.cs
- TextOptionsInternal.cs
- KeyEvent.cs
- SimpleWorkerRequest.cs
- ListViewEditEventArgs.cs
- UserNamePasswordValidator.cs
- FunctionUpdateCommand.cs
- XMLDiffLoader.cs
- DataServiceQueryOfT.cs
- SessionSwitchEventArgs.cs
- LinkTarget.cs
- ImportFileRequest.cs
- SQLStringStorage.cs
- DesignerForm.cs
- Barrier.cs
- ChangeConflicts.cs
- UInt64.cs
- ScrollPattern.cs
- ServiceProviders.cs
- HttpVersion.cs
- COMException.cs
- SizeF.cs
- Emitter.cs
- XmlBoundElement.cs
- EntitySqlException.cs
- GrammarBuilderRuleRef.cs
- ResumeStoryboard.cs
- SimpleType.cs
- DiscardableAttribute.cs
- ExtractedStateEntry.cs
- SelfSignedCertificate.cs
- RegexFCD.cs
- WarningException.cs
- BoundConstants.cs
- SafeMILHandle.cs
- InfoCardXmlSerializer.cs
- CheckBoxList.cs
- NamespaceCollection.cs
- ObjectStateEntry.cs
- Size3D.cs
- DataGridViewCell.cs
- Serializer.cs
- AssemblyCollection.cs
- SizeValueSerializer.cs
- ListView.cs
- DataFormat.cs
- ADMembershipUser.cs
- XmlArrayItemAttributes.cs
- Brush.cs
- IPHostEntry.cs
- OrderablePartitioner.cs