Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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(); } } } // 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
- CheckBoxStandardAdapter.cs
- MessageLoggingElement.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DataGridSortCommandEventArgs.cs
- Size3DValueSerializer.cs
- OleDbDataReader.cs
- ComponentManagerBroker.cs
- SequentialWorkflowHeaderFooter.cs
- SoapCodeExporter.cs
- ISO2022Encoding.cs
- Int32RectConverter.cs
- TableLayoutStyle.cs
- StorageEntityContainerMapping.cs
- WpfPayload.cs
- WindowsContainer.cs
- XmlSchemaElement.cs
- Rijndael.cs
- Label.cs
- securitymgrsite.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Expander.cs
- PropertyValidationContext.cs
- EventLogPermission.cs
- HwndMouseInputProvider.cs
- ApplicationTrust.cs
- BinaryObjectWriter.cs
- DllNotFoundException.cs
- BuildResult.cs
- OleDbErrorCollection.cs
- CodeIndexerExpression.cs
- WebPartsPersonalization.cs
- NamespaceInfo.cs
- ConcurrentDictionary.cs
- Win32.cs
- ModelItemExtensions.cs
- DataTableReaderListener.cs
- Path.cs
- CompModSwitches.cs
- XPathNavigatorReader.cs
- EdmValidator.cs
- ThemeInfoAttribute.cs
- DataGridViewColumnStateChangedEventArgs.cs
- Simplifier.cs
- SplineQuaternionKeyFrame.cs
- Schema.cs
- RowCache.cs
- ThreadStaticAttribute.cs
- MatrixAnimationUsingKeyFrames.cs
- XsltArgumentList.cs
- SolidColorBrush.cs
- ExpressionBuilderCollection.cs
- PassportAuthenticationModule.cs
- documentsequencetextview.cs
- XmlEventCache.cs
- StringResourceManager.cs
- GeometryCombineModeValidation.cs
- ButtonRenderer.cs
- SnapshotChangeTrackingStrategy.cs
- _ProxyRegBlob.cs
- HtmlWindowCollection.cs
- RawAppCommandInputReport.cs
- MachineKeySection.cs
- WebPartManager.cs
- HyperLinkDesigner.cs
- RecordManager.cs
- SpeechSynthesizer.cs
- TableColumn.cs
- DataRelation.cs
- WebPartConnectionsCancelVerb.cs
- EdmTypeAttribute.cs
- ConsumerConnectionPointCollection.cs
- WmfPlaceableFileHeader.cs
- BoundPropertyEntry.cs
- TickBar.cs
- MouseCaptureWithinProperty.cs
- SpinLock.cs
- DocumentAutomationPeer.cs
- RedirectionProxy.cs
- Oid.cs
- DurableRuntimeValidator.cs
- ObjectDataSourceSelectingEventArgs.cs
- MappingModelBuildProvider.cs
- Size.cs
- ComponentSerializationService.cs
- ConfigXmlSignificantWhitespace.cs
- EncoderFallback.cs
- Help.cs
- CallSite.cs
- SoapException.cs
- LocalizabilityAttribute.cs
- CaseInsensitiveComparer.cs
- TemplateColumn.cs
- SafePointer.cs
- TabletDeviceInfo.cs
- XmlWellformedWriter.cs
- ProxyManager.cs
- UnsettableComboBox.cs
- InputBuffer.cs
- ThemeInfoAttribute.cs
- SamlNameIdentifierClaimResource.cs