Code:
/ 4.0 / 4.0 / 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. /// // 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
- WindowsPen.cs
- LinearKeyFrames.cs
- PartialClassGenerationTaskInternal.cs
- RegexWorker.cs
- XmlSchemaAnnotated.cs
- Predicate.cs
- GenericEnumerator.cs
- ConnectivityStatus.cs
- CleanUpVirtualizedItemEventArgs.cs
- SecondaryIndex.cs
- figurelength.cs
- InternalTypeHelper.cs
- CompModSwitches.cs
- Thumb.cs
- ElementsClipboardData.cs
- MeasureData.cs
- ServiceOperationListItem.cs
- SqlDuplicator.cs
- EntityStoreSchemaFilterEntry.cs
- DocumentPageView.cs
- WebPartConnectionsConnectVerb.cs
- BooleanAnimationBase.cs
- ItemsControlAutomationPeer.cs
- DbMetaDataColumnNames.cs
- StringWriter.cs
- PolyLineSegment.cs
- OleDbConnection.cs
- TargetException.cs
- BooleanSwitch.cs
- AlternateViewCollection.cs
- PropertyEmitter.cs
- PaperSize.cs
- DependencyPropertyKey.cs
- Style.cs
- PropertyChangingEventArgs.cs
- View.cs
- Int64AnimationUsingKeyFrames.cs
- Polyline.cs
- FontDifferentiator.cs
- InteropAutomationProvider.cs
- TerminateSequence.cs
- InlineObject.cs
- __ComObject.cs
- ErrorFormatterPage.cs
- TreeNode.cs
- _HTTPDateParse.cs
- GenerateHelper.cs
- EpmContentDeSerializer.cs
- Clipboard.cs
- PageRequestManager.cs
- PeerApplicationLaunchInfo.cs
- ForeignConstraint.cs
- ICspAsymmetricAlgorithm.cs
- CallContext.cs
- TableLayoutRowStyleCollection.cs
- WindowsHyperlink.cs
- Mapping.cs
- MemoryMappedFileSecurity.cs
- Directory.cs
- WebControlAdapter.cs
- TreeNodeBinding.cs
- InputLanguageProfileNotifySink.cs
- ThreadStaticAttribute.cs
- PageSettings.cs
- TextBoxRenderer.cs
- errorpatternmatcher.cs
- SqlDataSourceFilteringEventArgs.cs
- ErasingStroke.cs
- SymbolType.cs
- ADMembershipProvider.cs
- FlowLayoutPanel.cs
- InteropAutomationProvider.cs
- StringWriter.cs
- QuaternionIndependentAnimationStorage.cs
- Vector3DAnimationUsingKeyFrames.cs
- InternalConfigEventArgs.cs
- RecordsAffectedEventArgs.cs
- WebPartDescriptionCollection.cs
- ImageListUtils.cs
- FacetDescription.cs
- ExceptionUtil.cs
- GroupBoxRenderer.cs
- WebPartChrome.cs
- Boolean.cs
- DesignRelation.cs
- LocalizedNameDescriptionPair.cs
- FixedSOMPage.cs
- BindingGraph.cs
- XmlCharacterData.cs
- MethodExpression.cs
- LinqDataSourceHelper.cs
- basecomparevalidator.cs
- ITextView.cs
- TrustManager.cs
- SystemIPGlobalStatistics.cs
- NeutralResourcesLanguageAttribute.cs
- SerialReceived.cs
- FrameworkName.cs
- WebServiceMethodData.cs
- Int64Animation.cs