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
- SqlUserDefinedAggregateAttribute.cs
- EventDriven.cs
- RangeValuePattern.cs
- SelectorAutomationPeer.cs
- PerformanceCounterPermission.cs
- DataBindingCollection.cs
- WebPartsPersonalization.cs
- _LoggingObject.cs
- SubMenuStyle.cs
- TypeDelegator.cs
- IndexedString.cs
- WindowsContainer.cs
- MetaForeignKeyColumn.cs
- XmlTypeMapping.cs
- SpecialFolderEnumConverter.cs
- ObsoleteAttribute.cs
- CatalogZoneBase.cs
- TraceHandlerErrorFormatter.cs
- ListView.cs
- TextTreeNode.cs
- ParameterElementCollection.cs
- ExtensionFile.cs
- ReadOnlyTernaryTree.cs
- AutoResizedEvent.cs
- ToolStripDropDownMenu.cs
- EntityContainerEntitySetDefiningQuery.cs
- TableAdapterManagerHelper.cs
- AsyncContentLoadedEventArgs.cs
- FixedBufferAttribute.cs
- ModelChangedEventArgsImpl.cs
- EnumCodeDomSerializer.cs
- ElapsedEventArgs.cs
- DPAPIProtectedConfigurationProvider.cs
- OuterGlowBitmapEffect.cs
- HwndAppCommandInputProvider.cs
- ThumbButtonInfo.cs
- DataPagerFieldCollection.cs
- CancelEventArgs.cs
- DbDataRecord.cs
- AncillaryOps.cs
- SelectionProcessor.cs
- ContentTypeSettingClientMessageFormatter.cs
- CompilerTypeWithParams.cs
- ImageMap.cs
- ClientSettingsStore.cs
- DirectoryNotFoundException.cs
- DataBoundControlDesigner.cs
- Border.cs
- ScanQueryOperator.cs
- TableItemProviderWrapper.cs
- WriteFileContext.cs
- DataStorage.cs
- AutoGeneratedField.cs
- SparseMemoryStream.cs
- RegisteredHiddenField.cs
- Axis.cs
- DtrList.cs
- FunctionDefinition.cs
- CompModSwitches.cs
- CalendarTable.cs
- DesignerFrame.cs
- TableItemPattern.cs
- DataReaderContainer.cs
- Int64.cs
- TableLayoutSettings.cs
- WebConfigurationManager.cs
- ValueTable.cs
- DbResourceAllocator.cs
- DataGridViewImageColumn.cs
- XmlAttributeOverrides.cs
- RowCache.cs
- ActivationArguments.cs
- ColorConverter.cs
- UInt64Converter.cs
- AttributeCollection.cs
- InfoCardTrace.cs
- Brush.cs
- XPathAxisIterator.cs
- SrgsText.cs
- SerTrace.cs
- TextAdaptor.cs
- VerificationAttribute.cs
- ReadOnlyTernaryTree.cs
- HttpApplication.cs
- Converter.cs
- SimpleApplicationHost.cs
- TabControlCancelEvent.cs
- IFlowDocumentViewer.cs
- WindowsPrincipal.cs
- ServiceModelStringsVersion1.cs
- DataServiceKeyAttribute.cs
- WorkBatch.cs
- HandlerFactoryCache.cs
- DataSourceCacheDurationConverter.cs
- PropertyValue.cs
- Size.cs
- PrimitiveDataContract.cs
- PopOutPanel.cs
- CompatibleComparer.cs
- MsmqHostedTransportConfiguration.cs