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
- ObjectComplexPropertyMapping.cs
- StateDesigner.CommentLayoutGlyph.cs
- SourceElementsCollection.cs
- X509Utils.cs
- ArgumentOutOfRangeException.cs
- HttpResponseInternalWrapper.cs
- ReadOnlyPropertyMetadata.cs
- ConfigurationStrings.cs
- TextServicesDisplayAttributePropertyRanges.cs
- Image.cs
- ConfigsHelper.cs
- EntityDesignerDataSourceView.cs
- BaseTemplateCodeDomTreeGenerator.cs
- TemplatePropertyEntry.cs
- CreateUserWizardAutoFormat.cs
- DataListCommandEventArgs.cs
- TableParaClient.cs
- ObjectStateFormatter.cs
- EtwTrackingParticipant.cs
- LayoutManager.cs
- RoleService.cs
- DataGridViewCellStateChangedEventArgs.cs
- PositiveTimeSpanValidatorAttribute.cs
- SystemIPInterfaceProperties.cs
- OracleColumn.cs
- AuthenticationService.cs
- URIFormatException.cs
- SoapFormatter.cs
- BrowserDefinition.cs
- AdRotator.cs
- XmlSecureResolver.cs
- ContainerControl.cs
- TemplateAction.cs
- StorageAssociationSetMapping.cs
- SHA384CryptoServiceProvider.cs
- ConnectorRouter.cs
- SmiContext.cs
- _TransmitFileOverlappedAsyncResult.cs
- ProfilePropertySettingsCollection.cs
- WebBrowserContainer.cs
- OletxResourceManager.cs
- InputBinding.cs
- EdmFunctions.cs
- IndependentAnimationStorage.cs
- CodeBlockBuilder.cs
- OutputScope.cs
- PanelStyle.cs
- SiteMapSection.cs
- _LazyAsyncResult.cs
- Pair.cs
- SqlUserDefinedTypeAttribute.cs
- xmlglyphRunInfo.cs
- RequestCacheValidator.cs
- HashAlgorithm.cs
- ScriptResourceHandler.cs
- MethodCallTranslator.cs
- TypeRestriction.cs
- AutomationProperties.cs
- GetRecipientListRequest.cs
- MetadataItem.cs
- XmlSchemaNotation.cs
- CopyCodeAction.cs
- ResponseBodyWriter.cs
- embossbitmapeffect.cs
- ReferenceService.cs
- PrintDialog.cs
- ByteAnimationUsingKeyFrames.cs
- TableRowCollection.cs
- CreatingCookieEventArgs.cs
- SiteMembershipCondition.cs
- XmlSchemaInfo.cs
- StringDictionaryWithComparer.cs
- HiddenField.cs
- AnnotationAdorner.cs
- RoutedUICommand.cs
- UnicodeEncoding.cs
- MsmqProcessProtocolHandler.cs
- ActivityCodeGenerator.cs
- IteratorDescriptor.cs
- CodeParameterDeclarationExpression.cs
- DictionaryEntry.cs
- BufferedStream.cs
- TypeUsage.cs
- Schema.cs
- MultilineStringConverter.cs
- StrokeNodeOperations2.cs
- ExpandSegment.cs
- XmlQualifiedName.cs
- ControlIdConverter.cs
- SemanticValue.cs
- ButtonBaseAdapter.cs
- CodeDOMUtility.cs
- AppliedDeviceFiltersDialog.cs
- AsyncPostBackTrigger.cs
- DataGridViewControlCollection.cs
- EntityStoreSchemaFilterEntry.cs
- RunClient.cs
- TableColumnCollectionInternal.cs
- BulletDecorator.cs
- EdmSchemaError.cs