Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } }/// 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
- _ShellExpression.cs
- ECDiffieHellmanPublicKey.cs
- DataGridColumnsPage.cs
- Socket.cs
- CustomErrorCollection.cs
- TypeFieldSchema.cs
- OrderedEnumerableRowCollection.cs
- BuildDependencySet.cs
- CollectionChangeEventArgs.cs
- ConfigurationHandlersInstallComponent.cs
- RegexMatchCollection.cs
- TextPattern.cs
- BooleanStorage.cs
- JournalEntryStack.cs
- RuleSetReference.cs
- DictionaryBase.cs
- WebPartConnectVerb.cs
- AsymmetricSignatureFormatter.cs
- InstallerTypeAttribute.cs
- AccessDataSource.cs
- CheckPair.cs
- DesignerActionPropertyItem.cs
- FileDataSourceCache.cs
- PassportAuthenticationModule.cs
- TreeViewDesigner.cs
- LabelEditEvent.cs
- MediaSystem.cs
- LineServicesRun.cs
- TileBrush.cs
- WmlValidatorAdapter.cs
- MSG.cs
- ExpressionReplacer.cs
- PointIndependentAnimationStorage.cs
- CaseInsensitiveComparer.cs
- StylusPointDescription.cs
- BitSet.cs
- StrokeCollection2.cs
- ValueConversionAttribute.cs
- MethodExpression.cs
- DataGridToolTip.cs
- UpdateRecord.cs
- TableRowCollection.cs
- Avt.cs
- ColumnResizeAdorner.cs
- CircleHotSpot.cs
- RangeValidator.cs
- ILGen.cs
- MetadataCache.cs
- OrderingInfo.cs
- LightweightEntityWrapper.cs
- GlyphCache.cs
- QilPatternFactory.cs
- DataKeyArray.cs
- DictionaryManager.cs
- TreeNodeStyleCollection.cs
- MenuAdapter.cs
- EntityContainerRelationshipSetEnd.cs
- Form.cs
- SendAgentStatusRequest.cs
- TreeNodeStyle.cs
- SystemUnicastIPAddressInformation.cs
- BoolExpressionVisitors.cs
- ExceptionRoutedEventArgs.cs
- COM2ComponentEditor.cs
- DataGridLinkButton.cs
- TextTreeRootTextBlock.cs
- EventData.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SafeLibraryHandle.cs
- InputScope.cs
- TreeViewItemAutomationPeer.cs
- AspProxy.cs
- SystemEvents.cs
- PointAnimationUsingPath.cs
- MSAAEventDispatcher.cs
- ModelTreeEnumerator.cs
- XmlSerializableWriter.cs
- XslTransform.cs
- MonthChangedEventArgs.cs
- EventLogTraceListener.cs
- LogicalCallContext.cs
- PLINQETWProvider.cs
- SelectionEditingBehavior.cs
- compensatingcollection.cs
- PointUtil.cs
- COM2IDispatchConverter.cs
- InvalidStoreProtectionKeyException.cs
- KeyboardDevice.cs
- OdbcEnvironment.cs
- EFColumnProvider.cs
- ExtendedProperty.cs
- ByteStream.cs
- InternalDispatchObject.cs
- COM2PropertyPageUITypeConverter.cs
- nulltextcontainer.cs
- RotateTransform3D.cs
- Cell.cs
- ConvertersCollection.cs
- TemplateNameScope.cs
- NodeFunctions.cs