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
- CompilerGeneratedAttribute.cs
- MemoryStream.cs
- CustomErrorCollection.cs
- LexicalChunk.cs
- WebConfigurationHost.cs
- UnionCodeGroup.cs
- TableRow.cs
- ImageCodecInfoPrivate.cs
- ConnectivityStatus.cs
- PieceNameHelper.cs
- OracleInfoMessageEventArgs.cs
- OptimizedTemplateContent.cs
- FlowDocumentPaginator.cs
- SafeNativeMethods.cs
- RuntimeWrappedException.cs
- LayoutEditorPart.cs
- Vector3DAnimationUsingKeyFrames.cs
- NullableIntMinMaxAggregationOperator.cs
- SingleKeyFrameCollection.cs
- ObjectViewEntityCollectionData.cs
- SafeThreadHandle.cs
- PopupControlService.cs
- ArrangedElement.cs
- AdRotator.cs
- SystemIcmpV6Statistics.cs
- DescendantBaseQuery.cs
- CollectionDataContractAttribute.cs
- TaskForm.cs
- Ref.cs
- ToolboxDataAttribute.cs
- CssClassPropertyAttribute.cs
- RenderDataDrawingContext.cs
- COAUTHIDENTITY.cs
- SafeIUnknown.cs
- HttpGetProtocolReflector.cs
- OptimisticConcurrencyException.cs
- ISAPIApplicationHost.cs
- HatchBrush.cs
- ReadonlyMessageFilter.cs
- HtmlShim.cs
- EditorPart.cs
- UpdatePanelTrigger.cs
- ToolboxComponentsCreatedEventArgs.cs
- HeaderedContentControl.cs
- SortDescription.cs
- Transactions.cs
- BitmapCache.cs
- TrustLevel.cs
- ReferenceEqualityComparer.cs
- StringValidator.cs
- MaskedTextBoxDesigner.cs
- DataRecord.cs
- SortDescriptionCollection.cs
- TrustVersion.cs
- TemplateField.cs
- CallbackTimeoutsElement.cs
- AsymmetricSignatureFormatter.cs
- ViewStateModeByIdAttribute.cs
- ZoneButton.cs
- AnyAllSearchOperator.cs
- CannotUnloadAppDomainException.cs
- SplayTreeNode.cs
- VirtualPathUtility.cs
- PartialArray.cs
- StylusPointPropertyInfo.cs
- StateFinalizationDesigner.cs
- PackagingUtilities.cs
- ComplexObject.cs
- NotificationContext.cs
- XmlCodeExporter.cs
- LinearGradientBrush.cs
- Error.cs
- XmlStreamedByteStreamReader.cs
- BCLDebug.cs
- AccessControlEntry.cs
- CompareInfo.cs
- TypeValidationEventArgs.cs
- EmptyControlCollection.cs
- securestring.cs
- PriorityQueue.cs
- TextOptions.cs
- PermissionAttributes.cs
- CodeTypeDeclarationCollection.cs
- AutomationPropertyInfo.cs
- BrushMappingModeValidation.cs
- ItemContainerGenerator.cs
- MenuItemBindingCollection.cs
- UserControlDesigner.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- OrderedEnumerableRowCollection.cs
- XmlAnyAttributeAttribute.cs
- LoginName.cs
- XPathExpr.cs
- control.ime.cs
- TrackBarRenderer.cs
- DesignTimeSiteMapProvider.cs
- FixedSOMPageElement.cs
- DirectoryLocalQuery.cs
- CommunicationObjectFaultedException.cs
- AnnotationAdorner.cs