Code:
/ FX-1434 / FX-1434 / 1.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
- TemplateEditingFrame.cs
- MostlySingletonList.cs
- MultiTrigger.cs
- PrintControllerWithStatusDialog.cs
- ZipIOExtraFieldZip64Element.cs
- DataReaderContainer.cs
- RegisteredArrayDeclaration.cs
- FontWeightConverter.cs
- SessionStateUtil.cs
- PropertyFilterAttribute.cs
- BigInt.cs
- SqlUtils.cs
- ErrorWebPart.cs
- Timer.cs
- RootDesignerSerializerAttribute.cs
- DbConnectionFactory.cs
- CacheDependency.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- BaseParser.cs
- InternalMappingException.cs
- AutomationEvent.cs
- _AuthenticationState.cs
- BamlLocalizationDictionary.cs
- dtdvalidator.cs
- DefaultObjectSerializer.cs
- TextLine.cs
- IncrementalCompileAnalyzer.cs
- DeclarativeConditionsCollection.cs
- FixedDocument.cs
- InstanceLockLostException.cs
- ApplicationTrust.cs
- Propagator.Evaluator.cs
- safePerfProviderHandle.cs
- CustomLineCap.cs
- XmlDataSourceNodeDescriptor.cs
- RecordBuilder.cs
- PerfCounters.cs
- AsnEncodedData.cs
- PeerResolverElement.cs
- WebPartsSection.cs
- DbDataReader.cs
- MessageDispatch.cs
- EmptyQuery.cs
- TemplatePropertyEntry.cs
- ClientSession.cs
- TextClipboardData.cs
- DictionaryContent.cs
- StreamGeometry.cs
- UnknownBitmapDecoder.cs
- MdbDataFileEditor.cs
- WebPartExportVerb.cs
- ILGenerator.cs
- WindowsSolidBrush.cs
- DictionaryBase.cs
- WebPartPersonalization.cs
- GenericWebPart.cs
- _ShellExpression.cs
- RegistrySecurity.cs
- Rijndael.cs
- AutomationEvent.cs
- LingerOption.cs
- ClockGroup.cs
- XmlSchemaExternal.cs
- SafeNativeMemoryHandle.cs
- ClientBuildManagerCallback.cs
- InvariantComparer.cs
- WorkflowMarkupElementEventArgs.cs
- NumericExpr.cs
- PolicyAssertionCollection.cs
- CompleteWizardStep.cs
- CompoundFileReference.cs
- HtmlInputSubmit.cs
- HtmlElementErrorEventArgs.cs
- RotateTransform.cs
- BoundField.cs
- InteropAutomationProvider.cs
- RequestQueue.cs
- TypeDelegator.cs
- ReferentialConstraint.cs
- _HeaderInfoTable.cs
- TextTreeDeleteContentUndoUnit.cs
- BoolExpr.cs
- PagedDataSource.cs
- EventProvider.cs
- ProbeDuplexAsyncResult.cs
- SchemaContext.cs
- FileUtil.cs
- UpdateProgress.cs
- StrongNamePublicKeyBlob.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- AsyncInvokeContext.cs
- FixedTextView.cs
- XmlLanguage.cs
- DataControlImageButton.cs
- GridViewDeletedEventArgs.cs
- GlobalizationAssembly.cs
- DllNotFoundException.cs
- CacheEntry.cs
- SortFieldComparer.cs
- CommonRemoteMemoryBlock.cs