Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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(); } } } // 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
- XmlUtf8RawTextWriter.cs
- JournalEntryStack.cs
- ListViewItemMouseHoverEvent.cs
- EnumType.cs
- GestureRecognizer.cs
- StandardOleMarshalObject.cs
- TargetControlTypeAttribute.cs
- CompositeControl.cs
- RuntimeCompatibilityAttribute.cs
- MailMessageEventArgs.cs
- EventLogPermissionAttribute.cs
- SqlNodeAnnotation.cs
- ArrayListCollectionBase.cs
- NumericExpr.cs
- SqlClientWrapperSmiStream.cs
- PageCatalogPartDesigner.cs
- StateMachineExecutionState.cs
- RegexTree.cs
- DelegatingConfigHost.cs
- DSASignatureDeformatter.cs
- ZipIOLocalFileDataDescriptor.cs
- PermissionToken.cs
- SystemIPAddressInformation.cs
- Identifier.cs
- NotImplementedException.cs
- StaticSiteMapProvider.cs
- CacheChildrenQuery.cs
- LinearGradientBrush.cs
- FormClosedEvent.cs
- UnauthorizedWebPart.cs
- EditorPart.cs
- TemplateXamlParser.cs
- PropertyMetadata.cs
- Compiler.cs
- prompt.cs
- Rule.cs
- keycontainerpermission.cs
- FrameworkContentElement.cs
- WebPartCatalogAddVerb.cs
- Condition.cs
- XmlChildEnumerator.cs
- UIElementAutomationPeer.cs
- ContextBase.cs
- Query.cs
- UnSafeCharBuffer.cs
- ManifestResourceInfo.cs
- SettingsSection.cs
- ScriptBehaviorDescriptor.cs
- PolicyVersion.cs
- TextBlock.cs
- SafeProcessHandle.cs
- SessionStateSection.cs
- InstanceStoreQueryResult.cs
- StreamResourceInfo.cs
- KeyValuePairs.cs
- __Error.cs
- NameValueCollection.cs
- Timer.cs
- BoundField.cs
- TextDecorationUnitValidation.cs
- Point.cs
- FormViewModeEventArgs.cs
- DictionaryItemsCollection.cs
- ADConnectionHelper.cs
- ProxyWebPartConnectionCollection.cs
- SessionParameter.cs
- AxHost.cs
- TextBoxAutoCompleteSourceConverter.cs
- base64Transforms.cs
- CookieProtection.cs
- HMACSHA256.cs
- CharEntityEncoderFallback.cs
- Profiler.cs
- SymbolEqualComparer.cs
- controlskin.cs
- DataControlField.cs
- COAUTHIDENTITY.cs
- XmlEntityReference.cs
- Array.cs
- XmlStreamStore.cs
- TransformGroup.cs
- SafeCryptHandles.cs
- TableCell.cs
- CustomAssemblyResolver.cs
- TextContainerChangeEventArgs.cs
- ObservableCollection.cs
- EditorZone.cs
- JapaneseLunisolarCalendar.cs
- ExitEventArgs.cs
- RemotingSurrogateSelector.cs
- OrElse.cs
- DbLambda.cs
- EventEntry.cs
- _NativeSSPI.cs
- XmlSchemaAppInfo.cs
- CroppedBitmap.cs
- GenericAuthenticationEventArgs.cs
- TransportChannelListener.cs
- XslException.cs
- ArrayConverter.cs