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
- ListSortDescription.cs
- MouseBinding.cs
- ParameterEditorUserControl.cs
- ListItemCollection.cs
- IssuedSecurityTokenProvider.cs
- ExpressionBuilder.cs
- embossbitmapeffect.cs
- PersonalizationStateQuery.cs
- StrokeIntersection.cs
- StringValidator.cs
- ECDiffieHellmanPublicKey.cs
- StaticExtension.cs
- TextRange.cs
- RenderingBiasValidation.cs
- HostedElements.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- UriParserTemplates.cs
- Lasso.cs
- ListChunk.cs
- WindowsFormsHelpers.cs
- WpfGeneratedKnownProperties.cs
- SynchronizationLockException.cs
- FindResponse.cs
- QuotedPairReader.cs
- PageStatePersister.cs
- ComplexObject.cs
- SoapHeaderAttribute.cs
- HierarchicalDataTemplate.cs
- FileInfo.cs
- ProcessHostConfigUtils.cs
- SizeChangedEventArgs.cs
- ServiceHostingEnvironment.cs
- WindowsListViewScroll.cs
- SqlServer2KCompatibilityCheck.cs
- PipelineModuleStepContainer.cs
- StandardOleMarshalObject.cs
- Stroke.cs
- ScrollContentPresenter.cs
- TextPattern.cs
- TextTreeObjectNode.cs
- ToolboxItemFilterAttribute.cs
- WsatEtwTraceListener.cs
- IDispatchConstantAttribute.cs
- TargetConverter.cs
- CollectionContainer.cs
- Options.cs
- LayoutTableCell.cs
- HttpConfigurationContext.cs
- DataRecordInternal.cs
- NavigationCommands.cs
- DataGridTemplateColumn.cs
- EncryptedPackage.cs
- AttributeCollection.cs
- StatusBarPanel.cs
- PrefixQName.cs
- RpcCryptoContext.cs
- QilValidationVisitor.cs
- DataGridViewControlCollection.cs
- MediaTimeline.cs
- ListViewCommandEventArgs.cs
- DataServiceQueryException.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ManagedFilter.cs
- DoubleAverageAggregationOperator.cs
- GreenMethods.cs
- ErrorTolerantObjectWriter.cs
- BitmapEffectGroup.cs
- ExtensionDataReader.cs
- WindowsRebar.cs
- ExtendLockCommand.cs
- ComponentResourceManager.cs
- LeftCellWrapper.cs
- Peer.cs
- SmtpFailedRecipientException.cs
- SizeIndependentAnimationStorage.cs
- XmlSignatureManifest.cs
- InitializerFacet.cs
- DesignTimeValidationFeature.cs
- TabControl.cs
- SelectionUIHandler.cs
- ContentPresenter.cs
- DiscreteKeyFrames.cs
- SimpleRecyclingCache.cs
- DataGridViewColumnDesigner.cs
- StandardOleMarshalObject.cs
- EventEntry.cs
- ProfessionalColors.cs
- CodeBlockBuilder.cs
- TextBox.cs
- XmlElementAttribute.cs
- TripleDES.cs
- InfoCardTraceRecord.cs
- DeferredSelectedIndexReference.cs
- SerializationInfoEnumerator.cs
- XmlSerializationGeneratedCode.cs
- ProtocolsConfigurationEntry.cs
- Rijndael.cs
- EncoderParameter.cs
- UrlPath.cs
- MaskedTextBox.cs