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
- SoapFault.cs
- Classification.cs
- LogicalExpr.cs
- ScriptDescriptor.cs
- MdImport.cs
- CatalogPart.cs
- TranslateTransform3D.cs
- BuildDependencySet.cs
- OnOperation.cs
- ZipIOLocalFileBlock.cs
- ElementsClipboardData.cs
- ProfileEventArgs.cs
- StylusPlugin.cs
- WeakReferenceKey.cs
- RectangleGeometry.cs
- DBConnectionString.cs
- Task.cs
- PipelineModuleStepContainer.cs
- SmiRecordBuffer.cs
- Table.cs
- ObjectPersistData.cs
- SequenceQuery.cs
- Token.cs
- OracleConnection.cs
- HttpApplication.cs
- InputManager.cs
- Message.cs
- Durable.cs
- HostingEnvironment.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ToolStripItemEventArgs.cs
- UTF32Encoding.cs
- DropDownList.cs
- GenericPrincipal.cs
- ContentPresenter.cs
- MultipartIdentifier.cs
- DbTransaction.cs
- Schema.cs
- DocumentXPathNavigator.cs
- DBParameter.cs
- SystemWebSectionGroup.cs
- BasicCellRelation.cs
- WebPartCancelEventArgs.cs
- ObjectStateManager.cs
- TableItemPattern.cs
- SafeLibraryHandle.cs
- AffineTransform3D.cs
- Transform3DCollection.cs
- Menu.cs
- OptimalTextSource.cs
- MailWriter.cs
- CounterSet.cs
- BaseDataBoundControl.cs
- WithStatement.cs
- PngBitmapDecoder.cs
- ButtonPopupAdapter.cs
- NonPrimarySelectionGlyph.cs
- ServiceTimeoutsElement.cs
- ConfigsHelper.cs
- DBSqlParserColumnCollection.cs
- PolicyUnit.cs
- TrustLevelCollection.cs
- QueryStringParameter.cs
- EmulateRecognizeCompletedEventArgs.cs
- BoundsDrawingContextWalker.cs
- ListItemParagraph.cs
- DesignerDataRelationship.cs
- ExpressionVisitor.cs
- SamlSubjectStatement.cs
- HashAlgorithm.cs
- EventSetter.cs
- HTTPNotFoundHandler.cs
- XmlNotation.cs
- EventListener.cs
- mediaeventshelper.cs
- BuildResult.cs
- XmlSchemaDatatype.cs
- HwndKeyboardInputProvider.cs
- X509CertificateRecipientServiceCredential.cs
- DefaultPrintController.cs
- HandlerWithFactory.cs
- EnumConverter.cs
- Matrix3DValueSerializer.cs
- XmlSchemaSimpleContentRestriction.cs
- SortFieldComparer.cs
- InternalDispatchObject.cs
- CodeVariableReferenceExpression.cs
- DateTimeParse.cs
- GridView.cs
- Validator.cs
- Win32PrintDialog.cs
- ListViewUpdatedEventArgs.cs
- HMACRIPEMD160.cs
- AmbiguousMatchException.cs
- MouseCaptureWithinProperty.cs
- AsmxEndpointPickerExtension.cs
- Sql8ExpressionRewriter.cs
- InheritanceAttribute.cs
- FontUnitConverter.cs
- SqlRewriteScalarSubqueries.cs