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
- MetricEntry.cs
- BitmapCache.cs
- Dictionary.cs
- safelinkcollection.cs
- UnknownBitmapDecoder.cs
- PropertyEmitterBase.cs
- CompositeKey.cs
- XmlWrappingReader.cs
- LineMetrics.cs
- Visual3D.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- WebControlsSection.cs
- OdbcDataReader.cs
- XmlDataDocument.cs
- IDispatchConstantAttribute.cs
- PKCS1MaskGenerationMethod.cs
- MemberProjectedSlot.cs
- Transform.cs
- TimeoutException.cs
- CheckBoxList.cs
- SqlException.cs
- RealProxy.cs
- HttpCachePolicy.cs
- PropertyPathWorker.cs
- MenuItemStyle.cs
- StylusOverProperty.cs
- XsltSettings.cs
- KeyTime.cs
- MetadataItem_Static.cs
- BooleanFacetDescriptionElement.cs
- ResourceContainer.cs
- Site.cs
- SqlUnionizer.cs
- AbsoluteQuery.cs
- XmlILConstructAnalyzer.cs
- CornerRadius.cs
- WhitespaceRule.cs
- QualificationDataAttribute.cs
- PinnedBufferMemoryStream.cs
- ObservableCollection.cs
- SslStream.cs
- ContextTokenTypeConverter.cs
- ClientTargetCollection.cs
- ActivityExecutorDelegateInfo.cs
- FigureParaClient.cs
- Color.cs
- MultipleViewPattern.cs
- SessionStateContainer.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SpAudioStreamWrapper.cs
- UtilityExtension.cs
- ToolStripGripRenderEventArgs.cs
- CoreSwitches.cs
- InstalledFontCollection.cs
- ToolStripDropDownMenu.cs
- SafeSecurityHandles.cs
- DataGridRowAutomationPeer.cs
- DataServiceContext.cs
- PasswordBoxAutomationPeer.cs
- TreeNodeBinding.cs
- SystemTcpConnection.cs
- RowToParametersTransformer.cs
- RootProjectionNode.cs
- CompModSwitches.cs
- WebBrowsableAttribute.cs
- QueryActivatableWorkflowsCommand.cs
- ExtensionDataReader.cs
- XmlAttributeCollection.cs
- TemplateControl.cs
- AnimationTimeline.cs
- SynchronizedDispatch.cs
- ExpressionServices.cs
- Pair.cs
- ParameterInfo.cs
- Attribute.cs
- ViewCellSlot.cs
- NavigationCommands.cs
- ModuleBuilderData.cs
- SqlPersonalizationProvider.cs
- Geometry3D.cs
- ByteAnimationUsingKeyFrames.cs
- CqlLexer.cs
- SqlProviderManifest.cs
- Component.cs
- HostingEnvironmentException.cs
- DateTimeFormatInfo.cs
- BitmapEffectRenderDataResource.cs
- BitmapEffectRenderDataResource.cs
- DnsPermission.cs
- Stack.cs
- InfoCardTraceRecord.cs
- KnownAssembliesSet.cs
- GB18030Encoding.cs
- ObjectItemAssemblyLoader.cs
- CommonGetThemePartSize.cs
- DataAdapter.cs
- StyleSelector.cs
- CodeAttributeArgument.cs
- SequentialWorkflowRootDesigner.cs
- Exceptions.cs