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
- ErrorItem.cs
- XmlTextReaderImpl.cs
- BitmapSizeOptions.cs
- ConfigViewGenerator.cs
- PerformanceCounterScope.cs
- TitleStyle.cs
- HostingEnvironment.cs
- RelationshipEnd.cs
- ObjectResult.cs
- RawKeyboardInputReport.cs
- KnownTypeAttribute.cs
- datacache.cs
- MemberPathMap.cs
- Model3DCollection.cs
- QuestionEventArgs.cs
- ControlPropertyNameConverter.cs
- PersistChildrenAttribute.cs
- CorrelationQueryBehavior.cs
- DataRowComparer.cs
- ListViewHitTestInfo.cs
- ImageFormatConverter.cs
- XmlUtilWriter.cs
- InvalidFilterCriteriaException.cs
- BitmapMetadata.cs
- TargetInvocationException.cs
- exports.cs
- NetTcpSection.cs
- PropertyInfoSet.cs
- SqlParameter.cs
- remotingproxy.cs
- ResourceSet.cs
- sortedlist.cs
- CommunicationObject.cs
- ListBase.cs
- ArrayList.cs
- ClientSideQueueItem.cs
- BitmapEffectState.cs
- _KerberosClient.cs
- UnknownBitmapEncoder.cs
- DataReaderContainer.cs
- BaseAutoFormat.cs
- DrawingContext.cs
- Native.cs
- HttpListenerRequest.cs
- HelloOperationAsyncResult.cs
- CurrentTimeZone.cs
- SizeAnimationUsingKeyFrames.cs
- DataObjectSettingDataEventArgs.cs
- WinEventWrap.cs
- BamlResourceDeserializer.cs
- InputBuffer.cs
- ExpandSegment.cs
- State.cs
- SerializationStore.cs
- Polygon.cs
- LastQueryOperator.cs
- SqlReferenceCollection.cs
- TemplateControl.cs
- DetailsViewDeleteEventArgs.cs
- KoreanLunisolarCalendar.cs
- TrustLevelCollection.cs
- ResolvedKeyFrameEntry.cs
- XmlDataSourceDesigner.cs
- DataGridTablesFactory.cs
- CodeDomSerializerException.cs
- SplashScreen.cs
- CodeStatementCollection.cs
- Stylus.cs
- HelpInfo.cs
- Latin1Encoding.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ServiceCredentialsSecurityTokenManager.cs
- Transaction.cs
- RadioButtonFlatAdapter.cs
- DataContractSerializerElement.cs
- ObjectListComponentEditor.cs
- SessionSwitchEventArgs.cs
- PageContentCollection.cs
- DelayLoadType.cs
- ConfigurationPropertyCollection.cs
- XhtmlBasicControlAdapter.cs
- KeyNotFoundException.cs
- AtomServiceDocumentSerializer.cs
- StatusBarItemAutomationPeer.cs
- TextBoxBase.cs
- BitmapSizeOptions.cs
- ResourcesChangeInfo.cs
- EndOfStreamException.cs
- TypeCodeDomSerializer.cs
- ValidationErrorEventArgs.cs
- FormClosingEvent.cs
- HttpWebRequestElement.cs
- BreadCrumbTextConverter.cs
- ProcessInfo.cs
- BidirectionalDictionary.cs
- Tokenizer.cs
- ReliabilityContractAttribute.cs
- Int64Converter.cs
- BinaryWriter.cs
- MethodBody.cs