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
- assertwrapper.cs
- TextTreePropertyUndoUnit.cs
- TypeNameConverter.cs
- StaticResourceExtension.cs
- dsa.cs
- DiscoveryClientReferences.cs
- InputMethodStateChangeEventArgs.cs
- OpenFileDialog.cs
- BitmapSourceSafeMILHandle.cs
- TiffBitmapDecoder.cs
- SchemaLookupTable.cs
- XmlSchemaElement.cs
- ModuleBuilder.cs
- DataGridComboBoxColumn.cs
- SizeChangedEventArgs.cs
- Button.cs
- COM2Enum.cs
- MetafileHeader.cs
- PartitionResolver.cs
- BeginStoryboard.cs
- PrintDialogException.cs
- WeakReference.cs
- DataControlImageButton.cs
- FacetChecker.cs
- ElementUtil.cs
- BlurEffect.cs
- DataRowChangeEvent.cs
- Odbc32.cs
- SchemaEntity.cs
- ButtonColumn.cs
- BooleanProjectedSlot.cs
- NumericUpDownAccelerationCollection.cs
- XamlToRtfWriter.cs
- Authorization.cs
- HtmlImageAdapter.cs
- GeneralTransform3DGroup.cs
- XmlPreloadedResolver.cs
- GraphicsPath.cs
- TemplatedControlDesigner.cs
- __Error.cs
- TraceLog.cs
- ConfigurationPermission.cs
- ExecutionEngineException.cs
- ListViewDeletedEventArgs.cs
- DateTimeOffsetAdapter.cs
- StylusPlugin.cs
- CmsInterop.cs
- CoTaskMemHandle.cs
- VisualProxy.cs
- StringReader.cs
- CLSCompliantAttribute.cs
- Range.cs
- NamespaceExpr.cs
- Roles.cs
- BoundField.cs
- Matrix3D.cs
- CustomValidator.cs
- DbReferenceCollection.cs
- Enlistment.cs
- DataRelationPropertyDescriptor.cs
- NamedObject.cs
- ContractTypeNameElement.cs
- SafeNativeMemoryHandle.cs
- SystemPens.cs
- TransactionFlowOption.cs
- CollectionViewSource.cs
- MultiTrigger.cs
- LightweightEntityWrapper.cs
- ComAwareEventInfo.cs
- BackStopAuthenticationModule.cs
- MultiplexingFormatMapping.cs
- TextEmbeddedObject.cs
- WebConvert.cs
- VirtualPathUtility.cs
- DES.cs
- SequenceDesigner.xaml.cs
- DbReferenceCollection.cs
- AxisAngleRotation3D.cs
- PolicyLevel.cs
- sqlstateclientmanager.cs
- __Filters.cs
- CommandBinding.cs
- SqlBulkCopyColumnMapping.cs
- ContentType.cs
- CodeTypeDelegate.cs
- PathHelper.cs
- TextRenderer.cs
- PropertyOverridesTypeEditor.cs
- LinkConverter.cs
- DesignerAdapterUtil.cs
- GridSplitterAutomationPeer.cs
- NotificationContext.cs
- XPathNavigatorReader.cs
- UIAgentRequest.cs
- Point.cs
- ResourcePermissionBaseEntry.cs
- MDIWindowDialog.cs
- _NtlmClient.cs
- Brush.cs
- TextAutomationPeer.cs