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
- ItemMap.cs
- SqlNotificationEventArgs.cs
- SqlDataSourceEnumerator.cs
- RSAProtectedConfigurationProvider.cs
- Transform3DCollection.cs
- AsymmetricAlgorithm.cs
- ContentFileHelper.cs
- SelectionListComponentEditor.cs
- TreeView.cs
- ContainerParagraph.cs
- DbParameterCollectionHelper.cs
- TreeNode.cs
- SqlVersion.cs
- mediaclock.cs
- PersonalizationDictionary.cs
- LookupBindingPropertiesAttribute.cs
- PeerNameRegistration.cs
- PeerHelpers.cs
- CatchBlock.cs
- XamlBrushSerializer.cs
- ToolBar.cs
- PersonalizationProvider.cs
- BindingListCollectionView.cs
- XhtmlBasicPhoneCallAdapter.cs
- ListBox.cs
- ParameterInfo.cs
- FixedSOMSemanticBox.cs
- MessageFilterTable.cs
- IdentityValidationException.cs
- ProviderBase.cs
- SqlEnums.cs
- CodePageEncoding.cs
- SslStream.cs
- UpdatePanelControlTrigger.cs
- Attributes.cs
- XmlException.cs
- AssociatedControlConverter.cs
- InputScope.cs
- Crypto.cs
- QuarticEase.cs
- TdsParserHelperClasses.cs
- CompileXomlTask.cs
- COM2Properties.cs
- TableRow.cs
- HtmlButton.cs
- Array.cs
- Fonts.cs
- VoiceSynthesis.cs
- AutomationPatternInfo.cs
- X509Utils.cs
- XmlReflectionMember.cs
- DesignerProperties.cs
- SectionXmlInfo.cs
- SiteMapSection.cs
- SafeCryptoHandles.cs
- SmtpClient.cs
- ApplyImportsAction.cs
- XmlSchemaAnnotation.cs
- ValidationException.cs
- XmlReader.cs
- DynamicDataManager.cs
- AuthorizationRule.cs
- MappingSource.cs
- _NtlmClient.cs
- UnsafeNativeMethods.cs
- EditorAttribute.cs
- Transform.cs
- DocumentApplicationJournalEntry.cs
- ComponentDesigner.cs
- TableLayoutPanel.cs
- CodeNamespace.cs
- OutOfProcStateClientManager.cs
- ValidatingPropertiesEventArgs.cs
- FlatButtonAppearance.cs
- ScrollProviderWrapper.cs
- CSharpCodeProvider.cs
- ValueTable.cs
- XamlRtfConverter.cs
- OleCmdHelper.cs
- WindowsListViewScroll.cs
- Console.cs
- _PooledStream.cs
- ReliabilityContractAttribute.cs
- SafeNativeMethods.cs
- Int32RectConverter.cs
- HeaderCollection.cs
- StringPropertyBuilder.cs
- BinHexEncoder.cs
- TraceInternal.cs
- TreeNodeSelectionProcessor.cs
- DeclarationUpdate.cs
- RuntimeHelpers.cs
- ConstantCheck.cs
- Guid.cs
- InteropDesigner.xaml.cs
- DataPagerField.cs
- FrameDimension.cs
- WindowPatternIdentifiers.cs
- SystemTcpStatistics.cs
- NumberSubstitution.cs