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
- StickyNote.cs
- Operators.cs
- ProxyGenerator.cs
- CodeTypeConstructor.cs
- CmsUtils.cs
- ScriptReference.cs
- UniqueEventHelper.cs
- SimpleBitVector32.cs
- ActiveDocumentEvent.cs
- MDIClient.cs
- Input.cs
- ColorDialog.cs
- QueryHandler.cs
- HttpCachePolicy.cs
- ServiceKnownTypeAttribute.cs
- X509ChainElement.cs
- SelectedDatesCollection.cs
- ArgumentNullException.cs
- autovalidator.cs
- RelationshipManager.cs
- CqlParserHelpers.cs
- WindowsIdentity.cs
- ExpressionQuoter.cs
- UdpDiscoveryEndpoint.cs
- StructuredTypeEmitter.cs
- DateTimeSerializationSection.cs
- RecognizerInfo.cs
- SecurityKeyType.cs
- Assembly.cs
- XPathArrayIterator.cs
- AudienceUriMode.cs
- ThreadInterruptedException.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- ReadOnlyMetadataCollection.cs
- DetailsViewPageEventArgs.cs
- Vector3DCollectionValueSerializer.cs
- ImageConverter.cs
- DirectionalLight.cs
- BufferedWebEventProvider.cs
- ComEventsHelper.cs
- TextBoxBase.cs
- XmlDocumentType.cs
- XmlHelper.cs
- ConfigurationElementProperty.cs
- Brush.cs
- DataGridViewComboBoxEditingControl.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- Int64.cs
- XmlSchemaObject.cs
- VectorKeyFrameCollection.cs
- _PooledStream.cs
- RunClient.cs
- ObjectAssociationEndMapping.cs
- SerializationFieldInfo.cs
- DragEventArgs.cs
- TimeoutException.cs
- Html32TextWriter.cs
- DataGridColumn.cs
- Single.cs
- SapiRecoInterop.cs
- UpdateTranslator.cs
- TreeNodeEventArgs.cs
- Rectangle.cs
- ComponentDispatcherThread.cs
- XmlByteStreamWriter.cs
- UdpDiscoveryEndpointElement.cs
- DataConnectionHelper.cs
- DataSourceDescriptorCollection.cs
- XmlWrappingWriter.cs
- ConfigXmlCDataSection.cs
- TypeValidationEventArgs.cs
- BaseResourcesBuildProvider.cs
- XmlnsDefinitionAttribute.cs
- ComponentChangedEvent.cs
- TextEditorCharacters.cs
- PoisonMessageException.cs
- Clock.cs
- DirtyTextRange.cs
- HttpRuntime.cs
- SuppressIldasmAttribute.cs
- AudioBase.cs
- safemediahandle.cs
- DebugController.cs
- SqlParameter.cs
- ProcessHostMapPath.cs
- DataGridViewBand.cs
- HtmlElementErrorEventArgs.cs
- ObjectParameter.cs
- WizardPanel.cs
- RouteParametersHelper.cs
- TrackingMemoryStream.cs
- RijndaelManaged.cs
- TaskForm.cs
- cookie.cs
- QilGenerator.cs
- DataServices.cs
- Rotation3DAnimation.cs
- DataBoundControl.cs
- HttpDebugHandler.cs
- PageFunction.cs