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
- HelpKeywordAttribute.cs
- figurelength.cs
- TableRow.cs
- Atom10FormatterFactory.cs
- RelationshipFixer.cs
- UndoEngine.cs
- AnimatedTypeHelpers.cs
- QilExpression.cs
- UnsafeNativeMethods.cs
- PocoEntityKeyStrategy.cs
- oledbconnectionstring.cs
- ListItemCollection.cs
- CustomValidator.cs
- ConstantProjectedSlot.cs
- SoapSchemaImporter.cs
- KeyInfo.cs
- NetDataContractSerializer.cs
- ObjectQueryProvider.cs
- CancellationTokenSource.cs
- ElementHostPropertyMap.cs
- SyndicationPerson.cs
- Transform3D.cs
- tooltip.cs
- PrintDocument.cs
- ReadOnlyHierarchicalDataSource.cs
- TableRowGroupCollection.cs
- ToolStripDropDownMenu.cs
- DataGridViewMethods.cs
- RewritingSimplifier.cs
- MappingModelBuildProvider.cs
- FrameworkElement.cs
- EntityDataSourceUtil.cs
- StackBuilderSink.cs
- CompilerError.cs
- XmlSchemaFacet.cs
- SchemaInfo.cs
- SingleStorage.cs
- RedirectionProxy.cs
- StreamedWorkflowDefinitionContext.cs
- SqlProviderManifest.cs
- ByteAnimationUsingKeyFrames.cs
- CaseInsensitiveHashCodeProvider.cs
- DocumentGridContextMenu.cs
- TagNameToTypeMapper.cs
- EntityCommandCompilationException.cs
- DbParameterCollectionHelper.cs
- BindingExpression.cs
- AddressAlreadyInUseException.cs
- GenericPrincipal.cs
- CircleEase.cs
- Sql8ConformanceChecker.cs
- RectAnimationUsingKeyFrames.cs
- TransactionChannelFactory.cs
- DataGridViewComboBoxEditingControl.cs
- ButtonPopupAdapter.cs
- CodeIndexerExpression.cs
- CustomErrorCollection.cs
- SiteOfOriginContainer.cs
- KeyTime.cs
- VariableBinder.cs
- XmlAttributeCollection.cs
- QilChoice.cs
- ProcessRequestArgs.cs
- Opcode.cs
- TextComposition.cs
- SizeConverter.cs
- BinaryFormatterWriter.cs
- WindowsImpersonationContext.cs
- BigInt.cs
- StringSorter.cs
- StyleXamlTreeBuilder.cs
- MarkupCompiler.cs
- ContainerFilterService.cs
- PerformanceCounterPermissionEntryCollection.cs
- DataSourceSelectArguments.cs
- LazyInitializer.cs
- LinearGradientBrush.cs
- SystemDropShadowChrome.cs
- Grant.cs
- KeySplineConverter.cs
- AssemblyBuilder.cs
- SocketPermission.cs
- FormatterConverter.cs
- OptionalColumn.cs
- LinkClickEvent.cs
- RectAnimation.cs
- WebPartConnectionsConnectVerb.cs
- Attachment.cs
- HandlerBase.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- OdbcDataAdapter.cs
- HttpResponseHeader.cs
- PropertySourceInfo.cs
- InstalledFontCollection.cs
- GradientStop.cs
- TemplateParser.cs
- FontStretches.cs
- DefinitionBase.cs
- _SslState.cs
- TextBoxBase.cs