Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TextElementAutomationPeer.cs
- SqlExpander.cs
- SystemResources.cs
- ChannelEndpointElementCollection.cs
- CommonDialog.cs
- DataGridParentRows.cs
- EncoderFallback.cs
- TypeForwardedToAttribute.cs
- HtmlInputText.cs
- DataBindingCollectionConverter.cs
- HttpResponseHeader.cs
- BlurEffect.cs
- XmlSchemaCollection.cs
- TextBox.cs
- StylesEditorDialog.cs
- SqlDataSourceSummaryPanel.cs
- EntityException.cs
- AccessKeyManager.cs
- OutputCache.cs
- BitmapEffectState.cs
- CompositeActivityTypeDescriptorProvider.cs
- WindowsImpersonationContext.cs
- oledbmetadatacolumnnames.cs
- SmiEventSink.cs
- Timer.cs
- MissingMethodException.cs
- SslStreamSecurityBindingElement.cs
- ChineseLunisolarCalendar.cs
- XmlCharCheckingReader.cs
- MemberListBinding.cs
- DependencyObjectType.cs
- TokenFactoryCredential.cs
- BookmarkWorkItem.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Types.cs
- PropertyRecord.cs
- ListViewSortEventArgs.cs
- MenuItemStyleCollection.cs
- ColorConvertedBitmap.cs
- BrowserTree.cs
- DoubleLinkList.cs
- UnsafeNativeMethods.cs
- MultilineStringEditor.cs
- TrackBarDesigner.cs
- ProfilePropertySettingsCollection.cs
- ContextMenu.cs
- ButtonChrome.cs
- MetaModel.cs
- dsa.cs
- UiaCoreProviderApi.cs
- PrintingPermission.cs
- BinarySerializer.cs
- CodeDomDecompiler.cs
- EnumValidator.cs
- ArgumentValue.cs
- PermissionSetTriple.cs
- XmlSignatureProperties.cs
- TableLayoutCellPaintEventArgs.cs
- KnownTypesProvider.cs
- XmlSchemaParticle.cs
- SmiConnection.cs
- StackBuilderSink.cs
- DocComment.cs
- TickBar.cs
- LinqDataSourceSelectEventArgs.cs
- XsltArgumentList.cs
- ImageAttributes.cs
- CryptoProvider.cs
- Item.cs
- TransformPatternIdentifiers.cs
- DiscriminatorMap.cs
- EncodingDataItem.cs
- NetworkInterface.cs
- BindableTemplateBuilder.cs
- ChtmlTextWriter.cs
- Operator.cs
- ObservableCollection.cs
- RegexFCD.cs
- DateTimeOffsetConverter.cs
- CodeArgumentReferenceExpression.cs
- SplayTreeNode.cs
- StrongName.cs
- ProxyAttribute.cs
- QueueProcessor.cs
- TypeValidationEventArgs.cs
- LogPolicy.cs
- OracleMonthSpan.cs
- ListSourceHelper.cs
- ScaleTransform3D.cs
- _TLSstream.cs
- ServiceAuthorizationManager.cs
- InertiaTranslationBehavior.cs
- DataReceivedEventArgs.cs
- FormViewPagerRow.cs
- MergeFilterQuery.cs
- UTF7Encoding.cs
- HtmlContainerControl.cs
- OleDbRowUpdatingEvent.cs
- KnownBoxes.cs
- EdmItemCollection.OcAssemblyCache.cs