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
- Stacktrace.cs
- DataGridViewCellEventArgs.cs
- SecurityRuntime.cs
- SystemUdpStatistics.cs
- PersistenceTypeAttribute.cs
- __Error.cs
- Types.cs
- SBCSCodePageEncoding.cs
- CompilerParameters.cs
- CoreSwitches.cs
- ErrorHandler.cs
- followingsibling.cs
- SubMenuStyle.cs
- odbcmetadatacollectionnames.cs
- ClassGenerator.cs
- Slider.cs
- NumericExpr.cs
- FullTextState.cs
- ParameterElementCollection.cs
- CompositeKey.cs
- SafeEventLogWriteHandle.cs
- AnnotationAdorner.cs
- XmlResolver.cs
- HtmlInputPassword.cs
- Roles.cs
- TypeEnumerableViewSchema.cs
- PermissionToken.cs
- RemoteWebConfigurationHostServer.cs
- BinaryWriter.cs
- DisplayNameAttribute.cs
- BitmapData.cs
- WindowInteropHelper.cs
- ValueUnavailableException.cs
- RefType.cs
- SafeSecurityHelper.cs
- BitmapEffectDrawingContextState.cs
- OdbcCommand.cs
- XmlElementList.cs
- MetadataItemCollectionFactory.cs
- TemplateBindingExtensionConverter.cs
- NumberSubstitution.cs
- Rfc4050KeyFormatter.cs
- DiscoveryEndpointValidator.cs
- RenameRuleObjectDialog.Designer.cs
- TransactionChannel.cs
- QilTypeChecker.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- MsmqBindingElementBase.cs
- RuleSettings.cs
- DataPager.cs
- CompositeCollectionView.cs
- SessionParameter.cs
- SqlTriggerContext.cs
- DbException.cs
- SqlCharStream.cs
- ZoneButton.cs
- FormViewDeleteEventArgs.cs
- FileCodeGroup.cs
- WindowManager.cs
- AttachedPropertyDescriptor.cs
- GeneralTransform.cs
- HttpConfigurationContext.cs
- NameValueCache.cs
- MetadataHelper.cs
- DatePickerTextBox.cs
- EnterpriseServicesHelper.cs
- PrinterUnitConvert.cs
- Vector3DAnimationUsingKeyFrames.cs
- SecurityAccessDeniedException.cs
- BitArray.cs
- SqlRewriteScalarSubqueries.cs
- QualifiedCellIdBoolean.cs
- BinaryQueryOperator.cs
- ConnectionStringsExpressionBuilder.cs
- DetailsViewRow.cs
- filewebrequest.cs
- COM2ExtendedBrowsingHandler.cs
- SerializationFieldInfo.cs
- XmlIlVisitor.cs
- XmlConvert.cs
- CharUnicodeInfo.cs
- TemplatePropertyEntry.cs
- RootBrowserWindowAutomationPeer.cs
- ItemAutomationPeer.cs
- _Events.cs
- ZeroOpNode.cs
- XmlDocumentFieldSchema.cs
- EmptyCollection.cs
- Request.cs
- QualifiedCellIdBoolean.cs
- QueryExpr.cs
- UrlMappingsModule.cs
- ToolStripSplitStackLayout.cs
- UpDownEvent.cs
- FeatureSupport.cs
- Color.cs
- CacheForPrimitiveTypes.cs
- FunctionNode.cs
- IDQuery.cs
- ListViewSortEventArgs.cs