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
- DbSourceCommand.cs
- TTSEngineTypes.cs
- OdbcCommand.cs
- FlowDocument.cs
- EntityDataSourceWrapperCollection.cs
- ReceiveContextCollection.cs
- XmlHierarchicalEnumerable.cs
- BufferedStream.cs
- Pointer.cs
- AppDomainManager.cs
- ListViewItemEventArgs.cs
- ParentUndoUnit.cs
- Substitution.cs
- InputReportEventArgs.cs
- safePerfProviderHandle.cs
- ExtendedPropertyInfo.cs
- DesignerActionItemCollection.cs
- AggregationMinMaxHelpers.cs
- QueryReaderSettings.cs
- ChangeConflicts.cs
- FixedSOMSemanticBox.cs
- TraceHandler.cs
- ParserContext.cs
- Table.cs
- TextBlockAutomationPeer.cs
- WorkflowWebService.cs
- Journaling.cs
- BasicExpandProvider.cs
- RadioButtonAutomationPeer.cs
- GB18030Encoding.cs
- SqlBulkCopyColumnMappingCollection.cs
- AttributeParameterInfo.cs
- __Filters.cs
- MenuItemStyleCollectionEditor.cs
- LayoutExceptionEventArgs.cs
- GridSplitter.cs
- IncrementalReadDecoders.cs
- MeasureItemEvent.cs
- MD5CryptoServiceProvider.cs
- TailPinnedEventArgs.cs
- CoTaskMemHandle.cs
- TemplateBuilder.cs
- ServiceDiscoveryBehavior.cs
- IntegerValidatorAttribute.cs
- PartitionedStreamMerger.cs
- ClientProxyGenerator.cs
- CultureData.cs
- X509AsymmetricSecurityKey.cs
- ObjectAnimationBase.cs
- CacheChildrenQuery.cs
- ComboBox.cs
- XmlWriterSettings.cs
- TileBrush.cs
- PeerInvitationResponse.cs
- SQLDecimalStorage.cs
- ChildTable.cs
- EventMap.cs
- PathFigure.cs
- HierarchicalDataBoundControlAdapter.cs
- ExceptionCollection.cs
- Point4DConverter.cs
- ContextMarshalException.cs
- GridViewPageEventArgs.cs
- EllipseGeometry.cs
- StringAnimationBase.cs
- UIElement3DAutomationPeer.cs
- DispatcherExceptionEventArgs.cs
- PlaceHolder.cs
- EncodingDataItem.cs
- MetadataUtilsSmi.cs
- EventLogEntryCollection.cs
- CachedBitmap.cs
- ArithmeticException.cs
- VarRemapper.cs
- ChannelManager.cs
- XmlSchemaParticle.cs
- PrimitiveCodeDomSerializer.cs
- CollectionEditor.cs
- XmlRawWriterWrapper.cs
- Calendar.cs
- HtmlInputControl.cs
- XPathCompileException.cs
- AvTraceDetails.cs
- CheckBoxList.cs
- COAUTHIDENTITY.cs
- ImagingCache.cs
- PenLineCapValidation.cs
- CreateRefExpr.cs
- PropertyInformation.cs
- TextRenderer.cs
- ServiceModelPerformanceCounters.cs
- KeyGesture.cs
- LinkClickEvent.cs
- UriWriter.cs
- ElementHostAutomationPeer.cs
- DocumentXPathNavigator.cs
- RefreshPropertiesAttribute.cs
- HashHelper.cs
- SqlDataSourceConfigureSortForm.cs
- safelinkcollection.cs