Code:
/ FX-1434 / FX-1434 / 1.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
- DictionaryBase.cs
- ComboBoxAutomationPeer.cs
- AnimatedTypeHelpers.cs
- DataColumnCollection.cs
- QilCloneVisitor.cs
- TextTreeTextBlock.cs
- XmlFormatMapping.cs
- SimpleFieldTemplateUserControl.cs
- DataGridViewTopRowAccessibleObject.cs
- SqlProvider.cs
- ToolZone.cs
- BaseAddressElement.cs
- EventLogPermissionHolder.cs
- WeakHashtable.cs
- XmlSchemaImport.cs
- ProfilePropertyNameValidator.cs
- DateTimeOffsetStorage.cs
- RsaSecurityTokenAuthenticator.cs
- TreeIterators.cs
- MDIClient.cs
- ProgramPublisher.cs
- DictionaryGlobals.cs
- ISO2022Encoding.cs
- ConstructorExpr.cs
- Container.cs
- ContentElementCollection.cs
- SoapIncludeAttribute.cs
- DataGridPageChangedEventArgs.cs
- SequentialOutput.cs
- LinqDataSourceStatusEventArgs.cs
- ItemsChangedEventArgs.cs
- Panel.cs
- ObjectStateManagerMetadata.cs
- GlyphRun.cs
- QueryServiceConfigHandle.cs
- ComplexPropertyEntry.cs
- SQLDateTime.cs
- XmlSchemaSimpleTypeList.cs
- TextSelectionHighlightLayer.cs
- IfAction.cs
- ImageSourceValueSerializer.cs
- WeakEventTable.cs
- DropTarget.cs
- ErrorWrapper.cs
- ObfuscateAssemblyAttribute.cs
- TemplateBindingExtension.cs
- SqlConnection.cs
- Gdiplus.cs
- _DisconnectOverlappedAsyncResult.cs
- QilFunction.cs
- Identifier.cs
- XDRSchema.cs
- ToolboxComponentsCreatedEventArgs.cs
- LinearGradientBrush.cs
- JapaneseCalendar.cs
- ServiceInfoCollection.cs
- PrePostDescendentsWalker.cs
- FlowLayoutSettings.cs
- TemplateControlParser.cs
- RSACryptoServiceProvider.cs
- SrgsSemanticInterpretationTag.cs
- WindowsListViewScroll.cs
- WebScriptMetadataFormatter.cs
- CodeSubDirectoriesCollection.cs
- DataSvcMapFileSerializer.cs
- UnknownWrapper.cs
- ResetableIterator.cs
- SchemaEntity.cs
- BitmapScalingModeValidation.cs
- UrlAuthFailedErrorFormatter.cs
- TableAutomationPeer.cs
- XmlWriter.cs
- MessageQueuePermissionEntryCollection.cs
- UrlPropertyAttribute.cs
- HandlerBase.cs
- SQLDecimal.cs
- TTSEngineProxy.cs
- RotateTransform.cs
- CodeSpit.cs
- ExtenderProvidedPropertyAttribute.cs
- DocumentPage.cs
- TextBox.cs
- IndentedWriter.cs
- ClaimTypes.cs
- HttpContextServiceHost.cs
- ContainerCodeDomSerializer.cs
- GiveFeedbackEventArgs.cs
- ToolStripItemEventArgs.cs
- CompositeCollectionView.cs
- MetadataSet.cs
- CodeCompiler.cs
- SingleKeyFrameCollection.cs
- ScriptReferenceBase.cs
- ThemeDictionaryExtension.cs
- StateMachineAction.cs
- _ConnectionGroup.cs
- RightsManagementEncryptionTransform.cs
- TypeConverterHelper.cs
- DbModificationClause.cs
- ResourceDisplayNameAttribute.cs