Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeAttachEventStatement.cs / 1 / CodeAttachEventStatement.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeAttachEventStatement : CodeStatement { private CodeEventReferenceExpression eventRef; private CodeExpression listener; ////// Represents a event attach statement. /// ////// public CodeAttachEventStatement() { } ////// Initializes a new instance of ///. /// /// public CodeAttachEventStatement(CodeEventReferenceExpression eventRef, CodeExpression listener) { this.eventRef = eventRef; this.listener = listener; } ////// Initializes a new instance of the ///class using the specified arguments. /// /// public CodeAttachEventStatement(CodeExpression targetObject, string eventName, CodeExpression listener) { this.eventRef = new CodeEventReferenceExpression(targetObject, eventName); this.listener = listener; } ///[To be supplied.] ////// public CodeEventReferenceExpression Event { get { if (eventRef == null) { return new CodeEventReferenceExpression(); } return eventRef; } set { eventRef = value; } } ////// The event to attach a listener to. /// ////// public CodeExpression Listener { get { return listener; } set { listener = value; } } } }/// The new listener. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigurationConverterBase.cs
- RequestCache.cs
- TextSegment.cs
- AssemblyAttributes.cs
- PathSegment.cs
- HtmlInputSubmit.cs
- HtmlInputButton.cs
- AttributeEmitter.cs
- BinarySecretKeyIdentifierClause.cs
- LinkDesigner.cs
- NetworkInformationPermission.cs
- FrameworkReadOnlyPropertyMetadata.cs
- SqlConnectionPoolGroupProviderInfo.cs
- FacetChecker.cs
- TabPage.cs
- ValidationSummary.cs
- MemberAccessException.cs
- ListViewGroup.cs
- CalendarAutoFormat.cs
- TextProperties.cs
- Geometry.cs
- Exceptions.cs
- HiddenFieldPageStatePersister.cs
- NaturalLanguageHyphenator.cs
- ConstraintManager.cs
- CodeRemoveEventStatement.cs
- SafeThreadHandle.cs
- RegexMatch.cs
- updateconfighost.cs
- NavigateUrlConverter.cs
- LinqDataSourceContextData.cs
- AvtEvent.cs
- SplineKeyFrames.cs
- InternalConfigSettingsFactory.cs
- columnmapfactory.cs
- SqlFunctionAttribute.cs
- XamlToRtfParser.cs
- XPathScanner.cs
- PageHandlerFactory.cs
- CompressedStack.cs
- KnownTypesProvider.cs
- DataRow.cs
- ADMembershipUser.cs
- NonDualMessageSecurityOverHttpElement.cs
- IntegerValidatorAttribute.cs
- DataObjectMethodAttribute.cs
- QueryStringParameter.cs
- MissingMethodException.cs
- EdmSchemaAttribute.cs
- MessageSmuggler.cs
- CodeCompileUnit.cs
- ILGenerator.cs
- SecurityContextTokenValidationException.cs
- RuleSettings.cs
- StylusPointPropertyId.cs
- xamlnodes.cs
- ToolBarOverflowPanel.cs
- CodeExporter.cs
- Label.cs
- ProfileService.cs
- TemplatedWizardStep.cs
- HtmlInputHidden.cs
- NameValueCache.cs
- PreservationFileWriter.cs
- HttpListenerContext.cs
- EncoderReplacementFallback.cs
- Int64.cs
- ContentType.cs
- ContextMenuStrip.cs
- TypeGeneratedEventArgs.cs
- StructureChangedEventArgs.cs
- OneOfElement.cs
- UnsafeNativeMethodsPenimc.cs
- ElapsedEventArgs.cs
- InputBinder.cs
- StylusButtonEventArgs.cs
- ChannelManager.cs
- ListView.cs
- jithelpers.cs
- GregorianCalendar.cs
- CodeCommentStatementCollection.cs
- NamedPipeHostedTransportConfiguration.cs
- SqlTriggerAttribute.cs
- DataKey.cs
- Internal.cs
- XmlSignatureProperties.cs
- ObjectList.cs
- TextDpi.cs
- WebBrowserBase.cs
- UrlAuthFailedErrorFormatter.cs
- Vector3dCollection.cs
- DetailsViewRowCollection.cs
- UMPAttributes.cs
- TextElementCollection.cs
- WebPartEditorOkVerb.cs
- ExpressionBuilderContext.cs
- ProfessionalColors.cs
- OpacityConverter.cs
- DataGridView.cs
- TextServicesLoader.cs