Code:
/ 4.0 / 4.0 / untmp / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MemberCollection.cs
- RegistryKey.cs
- ResourceDescriptionAttribute.cs
- DataTrigger.cs
- EventLogWatcher.cs
- TemplatePropertyEntry.cs
- XamlVector3DCollectionSerializer.cs
- ProgressBarBrushConverter.cs
- NavigationWindowAutomationPeer.cs
- StructuredTypeEmitter.cs
- PropertyValueChangedEvent.cs
- DesignTimeData.cs
- Intellisense.cs
- StoreItemCollection.cs
- MailWebEventProvider.cs
- UniqueIdentifierService.cs
- RemoveStoryboard.cs
- UnsafeCollabNativeMethods.cs
- DefaultHttpHandler.cs
- StringDictionary.cs
- DbParameterCollectionHelper.cs
- Fault.cs
- embossbitmapeffect.cs
- UnauthorizedAccessException.cs
- KnownBoxes.cs
- IntegerValidatorAttribute.cs
- BamlBinaryWriter.cs
- DoubleAverageAggregationOperator.cs
- WindowsListViewScroll.cs
- ListChunk.cs
- EntityCollection.cs
- BrowserDefinitionCollection.cs
- BevelBitmapEffect.cs
- ControlTemplate.cs
- BamlTreeMap.cs
- _DomainName.cs
- DbProviderConfigurationHandler.cs
- CodeDelegateCreateExpression.cs
- MenuItemCollection.cs
- QueryMath.cs
- QfeChecker.cs
- EmbeddedObject.cs
- DbParameterHelper.cs
- Polygon.cs
- FixedSOMImage.cs
- SynchronizationContextHelper.cs
- Constants.cs
- CallTemplateAction.cs
- Speller.cs
- RecognizerStateChangedEventArgs.cs
- SessionState.cs
- UTF7Encoding.cs
- RIPEMD160Managed.cs
- JsonDeserializer.cs
- SqlExpander.cs
- UserMapPath.cs
- ByteStack.cs
- InplaceBitmapMetadataWriter.cs
- CodeCommentStatement.cs
- CategoryGridEntry.cs
- ScriptingRoleServiceSection.cs
- TypeDescriptorContext.cs
- WebPartChrome.cs
- SqlRetyper.cs
- SignedXml.cs
- WebPartsPersonalization.cs
- HasCopySemanticsAttribute.cs
- InstanceHandle.cs
- HandlerBase.cs
- NamedPermissionSet.cs
- HttpCapabilitiesSectionHandler.cs
- IndicShape.cs
- EpmContentDeSerializerBase.cs
- ServicePoint.cs
- LayoutManager.cs
- RouteData.cs
- XMLSchema.cs
- DayRenderEvent.cs
- AutomationTextAttribute.cs
- SequentialOutput.cs
- InternalCache.cs
- PolicyManager.cs
- Brush.cs
- Membership.cs
- ReferenceSchema.cs
- EndpointConfigContainer.cs
- MediaElementAutomationPeer.cs
- CodeValidator.cs
- CheckableControlBaseAdapter.cs
- MergeFailedEvent.cs
- XsltSettings.cs
- SystemMulticastIPAddressInformation.cs
- BaseResourcesBuildProvider.cs
- PenContext.cs
- SqlGenerator.cs
- VoiceChangeEventArgs.cs
- GroupItemAutomationPeer.cs
- VisualStyleTypesAndProperties.cs
- TextTreeTextNode.cs
- CalendarTable.cs