Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DefaultEventAttribute.cs / 1305376 / 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
- NavigationProperty.cs
- BaseUriHelper.cs
- ReferenceEqualityComparer.cs
- ExpressionEvaluator.cs
- ClassDataContract.cs
- StringValueConverter.cs
- ReadOnlyCollection.cs
- initElementDictionary.cs
- SoapMessage.cs
- EnumValAlphaComparer.cs
- NetworkAddressChange.cs
- TextElementCollection.cs
- DataGridRow.cs
- NameTable.cs
- TextTreeUndo.cs
- InvalidFilterCriteriaException.cs
- AppDomainFactory.cs
- HtmlInputCheckBox.cs
- SoapTypeAttribute.cs
- Rect.cs
- RepeaterItemEventArgs.cs
- uribuilder.cs
- WpfGeneratedKnownProperties.cs
- CharacterMetrics.cs
- RNGCryptoServiceProvider.cs
- IpcManager.cs
- TCPListener.cs
- WeakHashtable.cs
- ThousandthOfEmRealPoints.cs
- XmlILModule.cs
- X509Logo.cs
- DiagnosticTraceSchemas.cs
- LocatorPart.cs
- ViewService.cs
- DataGridViewTextBoxColumn.cs
- HostingMessageProperty.cs
- WindowsImpersonationContext.cs
- DataGridViewCellMouseEventArgs.cs
- SelectionRange.cs
- UserMapPath.cs
- FlowDocument.cs
- TypeDescriptionProvider.cs
- BinaryNode.cs
- RequestUriProcessor.cs
- TextContainerChangedEventArgs.cs
- MenuEventArgs.cs
- AppLevelCompilationSectionCache.cs
- ISAPIRuntime.cs
- HtmlTextArea.cs
- DataViewManagerListItemTypeDescriptor.cs
- MatrixUtil.cs
- AttributeCollection.cs
- CodeSnippetTypeMember.cs
- DataServiceResponse.cs
- FindCriteriaElement.cs
- StyleCollection.cs
- RawStylusSystemGestureInputReport.cs
- EntryWrittenEventArgs.cs
- ChangesetResponse.cs
- ByteStack.cs
- XmlSchemaComplexType.cs
- SmiContextFactory.cs
- DSASignatureFormatter.cs
- ListViewGroup.cs
- MimeWriter.cs
- TypeUtils.cs
- TimeZoneInfo.cs
- HostProtectionPermission.cs
- Point3DIndependentAnimationStorage.cs
- Attributes.cs
- DataGridViewTextBoxEditingControl.cs
- OutputCacheSettingsSection.cs
- SafeHandles.cs
- DummyDataSource.cs
- RelatedPropertyManager.cs
- StrongName.cs
- WebResponse.cs
- Size3D.cs
- FrugalMap.cs
- SqlConnectionString.cs
- Transform.cs
- ChangeInterceptorAttribute.cs
- WebPartTransformer.cs
- CallContext.cs
- RuntimeUtils.cs
- ValueConversionAttribute.cs
- Validator.cs
- ToolStripOverflow.cs
- PopOutPanel.cs
- XmlCDATASection.cs
- CurrentTimeZone.cs
- HttpWrapper.cs
- Annotation.cs
- HtmlAnchor.cs
- TreeViewItem.cs
- CodeMethodMap.cs
- HttpHostedTransportConfiguration.cs
- GlyphCache.cs
- Evidence.cs
- SynchronizationFilter.cs