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
- UnsafeNativeMethods.cs
- ConfigXmlAttribute.cs
- SqlDependencyListener.cs
- KeyValueSerializer.cs
- Privilege.cs
- StaticExtension.cs
- DeclarativeCatalogPartDesigner.cs
- SponsorHelper.cs
- QueryContext.cs
- QueryGenerator.cs
- SqlInternalConnectionTds.cs
- WindowsGraphicsCacheManager.cs
- XmlIgnoreAttribute.cs
- XsltContext.cs
- ColumnReorderedEventArgs.cs
- HttpListenerElement.cs
- BigInt.cs
- DelegateSerializationHolder.cs
- Win32KeyboardDevice.cs
- QueryRewriter.cs
- DirectionalLight.cs
- Rule.cs
- ModelItemKeyValuePair.cs
- XmlTypeAttribute.cs
- InheritanceContextHelper.cs
- DataGridViewButtonCell.cs
- SHA1.cs
- WsiProfilesElementCollection.cs
- RedirectionProxy.cs
- SubMenuStyleCollection.cs
- WmlSelectionListAdapter.cs
- AccessibilityHelperForVista.cs
- RecipientInfo.cs
- TypefaceMetricsCache.cs
- Graph.cs
- recordstatescratchpad.cs
- ProtocolsConfiguration.cs
- Contracts.cs
- bindurihelper.cs
- DiagnosticTrace.cs
- CaseExpr.cs
- SqlConnectionPoolProviderInfo.cs
- Variable.cs
- ManualResetEvent.cs
- SqlClientWrapperSmiStreamChars.cs
- ScriptResourceHandler.cs
- FlowLayoutPanelDesigner.cs
- newinstructionaction.cs
- FragmentQuery.cs
- HttpListener.cs
- AnimationClockResource.cs
- TimeSpanValidator.cs
- IconConverter.cs
- WindowsListViewItemStartMenu.cs
- EntityDataSourceStatementEditor.cs
- SelectionRangeConverter.cs
- ProjectionCamera.cs
- ControlEvent.cs
- AudienceUriMode.cs
- StructuredProperty.cs
- WindowsBrush.cs
- SettingsPropertyValueCollection.cs
- NamedPermissionSet.cs
- FilterUserControlBase.cs
- HtmlHistory.cs
- SmiMetaData.cs
- LinqDataSourceContextEventArgs.cs
- CallSiteBinder.cs
- CompensatableSequenceActivity.cs
- TreeView.cs
- SkipQueryOptionExpression.cs
- TextRunTypographyProperties.cs
- LayoutEvent.cs
- WebPartVerbsEventArgs.cs
- Panel.cs
- DefaultSection.cs
- SRDisplayNameAttribute.cs
- BamlTreeMap.cs
- HttpStreamMessageEncoderFactory.cs
- MethodExpr.cs
- XComponentModel.cs
- DataSourceDescriptorCollection.cs
- EqualityComparer.cs
- RootBuilder.cs
- StatusBar.cs
- Lease.cs
- DirectoryNotFoundException.cs
- DataGridCell.cs
- WindowsListView.cs
- Literal.cs
- SafeHandles.cs
- ListenerPerfCounters.cs
- PersistenceException.cs
- CompModSwitches.cs
- SafeBuffer.cs
- DataGridViewLayoutData.cs
- DnsPermission.cs
- ContainerUIElement3D.cs
- AlternationConverter.cs
- CodeNamespaceImport.cs