Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- AnnotationMap.cs
- CompositionAdorner.cs
- ShellProvider.cs
- IdentifierService.cs
- EventLogPermissionEntryCollection.cs
- WmlSelectionListAdapter.cs
- Buffer.cs
- NetworkStream.cs
- PagerSettings.cs
- SafeNativeMethods.cs
- SqlCommand.cs
- DecoderReplacementFallback.cs
- OutputCacheProfileCollection.cs
- VisualCollection.cs
- AttributeInfo.cs
- ResourcesBuildProvider.cs
- AddInServer.cs
- UnSafeCharBuffer.cs
- SymLanguageVendor.cs
- ComponentCollection.cs
- XpsFont.cs
- EntityStoreSchemaFilterEntry.cs
- CustomTypeDescriptor.cs
- WebBrowsableAttribute.cs
- DateTimeHelper.cs
- Signature.cs
- Subset.cs
- BamlRecordWriter.cs
- FormViewUpdateEventArgs.cs
- Transform3D.cs
- COM2Enum.cs
- FixedTextPointer.cs
- CalendarDayButton.cs
- ScrollBar.cs
- ImmutableObjectAttribute.cs
- ToolStripDesignerUtils.cs
- CalendarModeChangedEventArgs.cs
- CustomErrorsSectionWrapper.cs
- TextContainerChangedEventArgs.cs
- AdornerLayer.cs
- ToolBar.cs
- Missing.cs
- PolicyFactory.cs
- MetadataUtilsSmi.cs
- TransformGroup.cs
- XLinq.cs
- ServiceProviders.cs
- PointAnimationClockResource.cs
- WebPartEditorOkVerb.cs
- ColumnClickEvent.cs
- WindowsRichEditRange.cs
- SkinBuilder.cs
- DescendentsWalkerBase.cs
- QueryRelOp.cs
- GroupBoxAutomationPeer.cs
- DataGridViewColumnCollection.cs
- ExtensibleClassFactory.cs
- HighlightVisual.cs
- StylusPointPropertyId.cs
- SQLMoneyStorage.cs
- DataGridViewColumnCollectionEditor.cs
- PageBuildProvider.cs
- PropertyNames.cs
- MetadataPropertyAttribute.cs
- PersonalizationEntry.cs
- ScriptReferenceEventArgs.cs
- ParseElementCollection.cs
- InstallerTypeAttribute.cs
- DataReaderContainer.cs
- XmlDownloadManager.cs
- ProcessingInstructionAction.cs
- DataSourceHelper.cs
- DataPagerField.cs
- DetailsViewInsertedEventArgs.cs
- WorkflowDispatchContext.cs
- ConfigXmlComment.cs
- EntityKey.cs
- Selector.cs
- ValueType.cs
- ToolStripSettings.cs
- PrintPreviewControl.cs
- ProtocolsConfiguration.cs
- Drawing.cs
- PageBreakRecord.cs
- SchemaImporterExtension.cs
- NameTable.cs
- ClientProxyGenerator.cs
- EllipticalNodeOperations.cs
- LinqDataSourceSelectEventArgs.cs
- DataBindingList.cs
- securestring.cs
- X509UI.cs
- StrongNameKeyPair.cs
- HttpPostedFile.cs
- NotifyParentPropertyAttribute.cs
- MetadataArtifactLoaderCompositeResource.cs
- OleDbFactory.cs
- ValueUnavailableException.cs
- SmtpSection.cs
- SingleKeyFrameCollection.cs