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
- OracleSqlParser.cs
- _DisconnectOverlappedAsyncResult.cs
- SiteIdentityPermission.cs
- AnimationTimeline.cs
- CommandHelpers.cs
- XmlSchemaAttributeGroupRef.cs
- Rotation3DAnimationBase.cs
- StateManagedCollection.cs
- DataControlPagerLinkButton.cs
- Freezable.cs
- FrameworkRichTextComposition.cs
- TypeDescriptionProviderAttribute.cs
- ToolZone.cs
- ChangeDirector.cs
- FtpCachePolicyElement.cs
- HttpListenerPrefixCollection.cs
- DesignerCategoryAttribute.cs
- UnionExpr.cs
- PageFunction.cs
- DeleteStoreRequest.cs
- X509UI.cs
- ObjectContext.cs
- AutomationPatternInfo.cs
- InputBuffer.cs
- ZipIOLocalFileHeader.cs
- ISAPIWorkerRequest.cs
- RegistrationServices.cs
- SerializableTypeCodeDomSerializer.cs
- ResourceManager.cs
- TraceHandler.cs
- ChannelSinkStacks.cs
- XsdDateTime.cs
- DataSourceView.cs
- EntityDesignerUtils.cs
- GridViewDeletedEventArgs.cs
- XhtmlConformanceSection.cs
- DefaultSection.cs
- SqlDataSourceFilteringEventArgs.cs
- PolicyException.cs
- RowUpdatingEventArgs.cs
- ProfileManager.cs
- TextEditorLists.cs
- NumericUpDownAccelerationCollection.cs
- BoolExpressionVisitors.cs
- TrackBarRenderer.cs
- FileLevelControlBuilderAttribute.cs
- CodeCommentStatementCollection.cs
- RegistryKey.cs
- PtsHelper.cs
- CompiledXpathExpr.cs
- ReversePositionQuery.cs
- ToolboxItemImageConverter.cs
- Bold.cs
- TransformerConfigurationWizardBase.cs
- NavigationFailedEventArgs.cs
- ConditionalExpression.cs
- BatchStream.cs
- EntityDataSourceValidationException.cs
- HttpAsyncResult.cs
- DynamicPropertyHolder.cs
- InboundActivityHelper.cs
- RuntimeResourceSet.cs
- TypeReference.cs
- GetTokenRequest.cs
- SqlServer2KCompatibilityCheck.cs
- FlagsAttribute.cs
- EnumConverter.cs
- Hashtable.cs
- ConnectionOrientedTransportElement.cs
- Domain.cs
- ModelProperty.cs
- EnumMember.cs
- SecurityPolicySection.cs
- ContentType.cs
- WCFServiceClientProxyGenerator.cs
- Translator.cs
- HttpCapabilitiesSectionHandler.cs
- TrackBar.cs
- ControlBuilder.cs
- BigInt.cs
- MonthChangedEventArgs.cs
- ControlBuilder.cs
- NullReferenceException.cs
- ServiceContractDetailViewControl.cs
- StorageMappingItemLoader.cs
- ListControlConvertEventArgs.cs
- ScriptIgnoreAttribute.cs
- IconConverter.cs
- OleDbWrapper.cs
- AttachmentCollection.cs
- RuleAction.cs
- ToolStripRenderEventArgs.cs
- QueryLifecycle.cs
- X509SecurityTokenProvider.cs
- CachedBitmap.cs
- WebPartCloseVerb.cs
- PartialClassGenerationTask.cs
- OletxTransactionManager.cs
- ConstructorNeedsTagAttribute.cs
- GridLength.cs