Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DataGridTableStyleMappingNameEditor.cs
- Bidi.cs
- JsonReaderWriterFactory.cs
- SettingsSection.cs
- MobilePage.cs
- CoTaskMemHandle.cs
- AssertSection.cs
- FileLogRecordHeader.cs
- _ConnectOverlappedAsyncResult.cs
- ImageIndexEditor.cs
- ElementsClipboardData.cs
- DataAdapter.cs
- Part.cs
- ModuleBuilder.cs
- PnrpPermission.cs
- SchemaTypeEmitter.cs
- DependentTransaction.cs
- RequestBringIntoViewEventArgs.cs
- SqlBooleanMismatchVisitor.cs
- RepeaterItemEventArgs.cs
- SecurityContext.cs
- OracleColumn.cs
- wgx_commands.cs
- URI.cs
- HashCryptoHandle.cs
- List.cs
- FormViewInsertEventArgs.cs
- IgnoreFlushAndCloseStream.cs
- XamlLoadErrorInfo.cs
- ToolStripEditorManager.cs
- ReadOnlyCollection.cs
- GlobalEventManager.cs
- CellIdBoolean.cs
- SspiSecurityTokenParameters.cs
- URI.cs
- XmlSchemaNotation.cs
- TokenFactoryBase.cs
- GPRECTF.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- X509ServiceCertificateAuthenticationElement.cs
- ContextQuery.cs
- Literal.cs
- SystemKeyConverter.cs
- NumericUpDownAcceleration.cs
- BuildResult.cs
- TableAdapterManagerHelper.cs
- WorkflowTimerService.cs
- ParserStreamGeometryContext.cs
- TextTreeUndo.cs
- View.cs
- Renderer.cs
- ListControlActionList.cs
- ProcessManager.cs
- AspNetHostingPermission.cs
- BaseParagraph.cs
- UnsafeNativeMethods.cs
- Label.cs
- DataGridViewCellParsingEventArgs.cs
- UniformGrid.cs
- SymLanguageType.cs
- ProtocolsSection.cs
- MonthCalendar.cs
- ToolStripDropDownItemDesigner.cs
- SamlSecurityToken.cs
- EventHandlersDesigner.cs
- CompilerWrapper.cs
- Bidi.cs
- Cursor.cs
- ListControlConvertEventArgs.cs
- TagMapInfo.cs
- NegationPusher.cs
- XmlSchemaComplexType.cs
- RelationshipConverter.cs
- MultipartIdentifier.cs
- DescendantQuery.cs
- ThousandthOfEmRealPoints.cs
- BezierSegment.cs
- SchemaTableOptionalColumn.cs
- HttpWriter.cs
- LoopExpression.cs
- FontUnit.cs
- HttpCacheVaryByContentEncodings.cs
- EntityContainer.cs
- FirstMatchCodeGroup.cs
- HandlerBase.cs
- ColumnBinding.cs
- XmlLanguage.cs
- ProfessionalColorTable.cs
- ComboBoxAutomationPeer.cs
- SecurityContext.cs
- CallbackValidator.cs
- Persist.cs
- DnsEndpointIdentity.cs
- DocumentApplicationJournalEntry.cs
- UnsafeNativeMethods.cs
- XmlTextWriter.cs
- SectionRecord.cs
- TextElementEditingBehaviorAttribute.cs
- ToolboxDataAttribute.cs
- IdnElement.cs