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
- ObjectStateManager.cs
- ProfilePropertyMetadata.cs
- KnownTypesProvider.cs
- SpeechSynthesizer.cs
- PasswordRecovery.cs
- PixelFormat.cs
- LocalizationComments.cs
- DesignerToolStripControlHost.cs
- FixedSOMPage.cs
- ListParagraph.cs
- PerformanceCounterPermission.cs
- RayHitTestParameters.cs
- path.cs
- ContentHostHelper.cs
- StringUtil.cs
- StorageBasedPackageProperties.cs
- EntityReference.cs
- BamlRecordReader.cs
- SchemaTableColumn.cs
- WebBaseEventKeyComparer.cs
- ISAPIApplicationHost.cs
- CodeRegionDirective.cs
- CriticalHandle.cs
- MarkerProperties.cs
- ExpressionNormalizer.cs
- UniqueID.cs
- DataMisalignedException.cs
- IIS7UserPrincipal.cs
- DataSourceXmlSerializationAttribute.cs
- BindableAttribute.cs
- PermissionListSet.cs
- ReadOnlyObservableCollection.cs
- SafeEventLogReadHandle.cs
- DataGridViewCellValueEventArgs.cs
- EffectiveValueEntry.cs
- FileUpload.cs
- _CacheStreams.cs
- XhtmlCssHandler.cs
- SystemIPGlobalStatistics.cs
- ReadOnlyCollectionBase.cs
- QueryTask.cs
- ApplicationSecurityInfo.cs
- QilXmlReader.cs
- SiteMapNodeCollection.cs
- DropShadowEffect.cs
- RepeaterItemEventArgs.cs
- DataTableReader.cs
- IsolatedStorage.cs
- GenerateTemporaryTargetAssembly.cs
- WebContentFormatHelper.cs
- AppliedDeviceFiltersDialog.cs
- TagPrefixAttribute.cs
- XamlReader.cs
- DataGridViewCellCancelEventArgs.cs
- HttpsHostedTransportConfiguration.cs
- PathNode.cs
- ConfigurationSectionCollection.cs
- StrokeNode.cs
- ProfileEventArgs.cs
- _ProxyChain.cs
- HierarchicalDataBoundControlAdapter.cs
- XpsFilter.cs
- Request.cs
- SymmetricAlgorithm.cs
- PasswordDeriveBytes.cs
- CodeGenerator.cs
- Exceptions.cs
- SqlCommandBuilder.cs
- PropertyPathConverter.cs
- Decoder.cs
- MenuBase.cs
- GreenMethods.cs
- XmlMembersMapping.cs
- CustomAttribute.cs
- DrawingGroup.cs
- OptimizerPatterns.cs
- SocketException.cs
- BindingCompleteEventArgs.cs
- TemplateBindingExtensionConverter.cs
- BlurBitmapEffect.cs
- SqlCommand.cs
- OdbcConnectionFactory.cs
- MouseGestureValueSerializer.cs
- SelectionService.cs
- ImageDrawing.cs
- CqlParser.cs
- ScopedMessagePartSpecification.cs
- RawMouseInputReport.cs
- DeferredSelectedIndexReference.cs
- TemplatedMailWebEventProvider.cs
- TaiwanCalendar.cs
- EntityTemplateUserControl.cs
- SoapHttpTransportImporter.cs
- SettingsBase.cs
- QueryPrefixOp.cs
- DesignUtil.cs
- EncodingDataItem.cs
- FixedDocumentSequencePaginator.cs
- ConfigXmlWhitespace.cs
- XmlDocumentSerializer.cs