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
- PropertySegmentSerializationProvider.cs
- DispatcherOperation.cs
- SQLMoneyStorage.cs
- StrongNameUtility.cs
- KernelTypeValidation.cs
- TileBrush.cs
- AssociationEndMember.cs
- Camera.cs
- ListControlDataBindingHandler.cs
- StrongNameUtility.cs
- clipboard.cs
- GroupBoxAutomationPeer.cs
- ProcessThread.cs
- TaskFactory.cs
- ResourceCollectionInfo.cs
- CodeConditionStatement.cs
- LambdaCompiler.cs
- SharedMemory.cs
- StoreItemCollection.cs
- LicenseProviderAttribute.cs
- XmlAttributeCollection.cs
- DESCryptoServiceProvider.cs
- KeyValuePairs.cs
- QuotedPrintableStream.cs
- BamlLocalizer.cs
- DataGrid.cs
- WebServiceBindingAttribute.cs
- DataGridViewCellCancelEventArgs.cs
- GraphicsContext.cs
- LoadRetryHandler.cs
- CheckBoxPopupAdapter.cs
- WsdlParser.cs
- XmlDataCollection.cs
- Pipe.cs
- SessionStateSection.cs
- InstancePersistenceCommandException.cs
- CAGDesigner.cs
- ZoneButton.cs
- SHA384Managed.cs
- MarkedHighlightComponent.cs
- ListBox.cs
- SystemNetHelpers.cs
- BuildResult.cs
- AutoGeneratedField.cs
- AppDomainProtocolHandler.cs
- Vector3DAnimation.cs
- x509utils.cs
- RowToFieldTransformer.cs
- AdornerLayer.cs
- Help.cs
- Char.cs
- EntityCommandDefinition.cs
- SynchronousChannelMergeEnumerator.cs
- Matrix3DStack.cs
- _AcceptOverlappedAsyncResult.cs
- XamlSerializerUtil.cs
- _SingleItemRequestCache.cs
- ListItemsPage.cs
- SizeAnimation.cs
- PiiTraceSource.cs
- StreamGeometry.cs
- RotateTransform3D.cs
- InteropAutomationProvider.cs
- CodeComment.cs
- DefaultTextStore.cs
- arabicshape.cs
- RadioButtonStandardAdapter.cs
- BreadCrumbTextConverter.cs
- TableRowsCollectionEditor.cs
- ipaddressinformationcollection.cs
- ActivityPropertyReference.cs
- GacUtil.cs
- ReferenceEqualityComparer.cs
- HttpCacheParams.cs
- MediaEntryAttribute.cs
- FixedLineResult.cs
- IfAction.cs
- ChtmlTextWriter.cs
- BamlReader.cs
- MetadataExchangeClient.cs
- UniqueConstraint.cs
- Activity.cs
- Subtree.cs
- PrimitiveDataContract.cs
- TreeViewImageKeyConverter.cs
- ViewPort3D.cs
- FileDetails.cs
- InvalidAsynchronousStateException.cs
- StylusPoint.cs
- DrawingContextWalker.cs
- SynchronizingStream.cs
- IdnMapping.cs
- InvalidOleVariantTypeException.cs
- XmlValidatingReaderImpl.cs
- CacheVirtualItemsEvent.cs
- TypeSystem.cs
- DeclaredTypeValidatorAttribute.cs
- CodePageUtils.cs
- SqlEnums.cs
- DbModificationClause.cs