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
- TableStyle.cs
- WindowsStatic.cs
- LocalFileSettingsProvider.cs
- login.cs
- SystemResourceKey.cs
- HttpHandlerActionCollection.cs
- DataColumn.cs
- FolderNameEditor.cs
- SortKey.cs
- AppearanceEditorPart.cs
- RemoteWebConfigurationHostStream.cs
- ImageSource.cs
- BamlRecords.cs
- Shared.cs
- ProtocolState.cs
- BaseCodeDomTreeGenerator.cs
- DictationGrammar.cs
- PathFigure.cs
- BitSet.cs
- HttpListenerException.cs
- XmlSchemaAnnotation.cs
- WindowsGraphicsCacheManager.cs
- WebPartManager.cs
- PropertyGeneratedEventArgs.cs
- SectionInformation.cs
- util.cs
- UnknownBitmapDecoder.cs
- odbcmetadatacollectionnames.cs
- OdbcHandle.cs
- FactoryGenerator.cs
- XmlDocument.cs
- FunctionDescription.cs
- ListComponentEditorPage.cs
- Msec.cs
- NumberFunctions.cs
- PackageRelationshipCollection.cs
- AuthenticationModuleElementCollection.cs
- DataBindingExpressionBuilder.cs
- UnsafeNativeMethods.cs
- XmlWhitespace.cs
- CompositeControl.cs
- FixedSOMTableCell.cs
- RegexRunner.cs
- SqlParameterizer.cs
- DataRowChangeEvent.cs
- IChannel.cs
- AdRotator.cs
- DataGridRelationshipRow.cs
- DataPagerField.cs
- BooleanAnimationBase.cs
- OrthographicCamera.cs
- AnimatedTypeHelpers.cs
- HiddenField.cs
- Function.cs
- DataRecord.cs
- PopOutPanel.cs
- ListItemConverter.cs
- Misc.cs
- InfoCardTrace.cs
- BindingExpression.cs
- WebAdminConfigurationHelper.cs
- WebPartUserCapability.cs
- PointValueSerializer.cs
- FastEncoderWindow.cs
- BindingElementExtensionElement.cs
- SoapExtension.cs
- SecurityDocument.cs
- UrlMappingsModule.cs
- PropertyGeneratedEventArgs.cs
- SimpleColumnProvider.cs
- ExpressionCopier.cs
- GeometryGroup.cs
- BasicExpressionVisitor.cs
- WebRequestModuleElement.cs
- CodePropertyReferenceExpression.cs
- EventProviderBase.cs
- TextStore.cs
- TextAction.cs
- ListViewInsertEventArgs.cs
- SvcMapFileLoader.cs
- StrongTypingException.cs
- AsymmetricKeyExchangeFormatter.cs
- AssemblyBuilderData.cs
- StoreContentChangedEventArgs.cs
- Crc32.cs
- HttpResponse.cs
- TextElementCollection.cs
- ContextProperty.cs
- RealizationDrawingContextWalker.cs
- SchemeSettingElement.cs
- OracleException.cs
- SendingRequestEventArgs.cs
- JsonSerializer.cs
- TextShapeableCharacters.cs
- _MultipleConnectAsync.cs
- FormViewDeleteEventArgs.cs
- UdpRetransmissionSettings.cs
- GridPattern.cs
- SessionParameter.cs
- PolyQuadraticBezierSegment.cs