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
- HttpModuleActionCollection.cs
- ClientEventManager.cs
- ExceptionUtility.cs
- CellTreeSimplifier.cs
- DateTimeParse.cs
- HelpProvider.cs
- PersonalizableAttribute.cs
- ProcessModelSection.cs
- CheckBoxStandardAdapter.cs
- InsufficientMemoryException.cs
- Facet.cs
- StrokeCollection.cs
- ToolStripGripRenderEventArgs.cs
- Attributes.cs
- ViewManager.cs
- FileVersionInfo.cs
- QilLoop.cs
- ContentDisposition.cs
- LicenseManager.cs
- KeyboardDevice.cs
- FaultConverter.cs
- CLSCompliantAttribute.cs
- DateTimePicker.cs
- StackBuilderSink.cs
- DependentList.cs
- PointAnimationUsingPath.cs
- StrongNameKeyPair.cs
- PrintPreviewDialog.cs
- SineEase.cs
- webbrowsersite.cs
- DataGridViewTextBoxCell.cs
- OperatingSystemVersionCheck.cs
- FileLevelControlBuilderAttribute.cs
- XmlTypeAttribute.cs
- NeutralResourcesLanguageAttribute.cs
- GestureRecognizer.cs
- _ConnectOverlappedAsyncResult.cs
- IntPtr.cs
- PTUtility.cs
- FunctionCommandText.cs
- MessageHeader.cs
- TimeZone.cs
- ContextInformation.cs
- MetabaseSettingsIis7.cs
- SettingsProviderCollection.cs
- Token.cs
- CompModSwitches.cs
- MenuAdapter.cs
- ElementNotEnabledException.cs
- AlphaSortedEnumConverter.cs
- ClientSettings.cs
- DataGridViewAccessibleObject.cs
- BezierSegment.cs
- WinFormsComponentEditor.cs
- DatatypeImplementation.cs
- DeflateStreamAsyncResult.cs
- ObjectStateFormatter.cs
- ImageListUtils.cs
- BulletChrome.cs
- PolicyException.cs
- FigureParagraph.cs
- EndpointAddress.cs
- TextPattern.cs
- GridViewColumnHeaderAutomationPeer.cs
- EntityDataSourceColumn.cs
- DrawingAttributes.cs
- ServicesSection.cs
- TemplateKey.cs
- Button.cs
- Path.cs
- StrokeNodeOperations2.cs
- ScriptingAuthenticationServiceSection.cs
- SelectionItemProviderWrapper.cs
- AsyncOperation.cs
- WebPartDisplayModeCancelEventArgs.cs
- XPathNavigator.cs
- QilParameter.cs
- ILGen.cs
- DataServiceQueryException.cs
- SrgsElementFactory.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- OneWayBindingElementImporter.cs
- InternalPolicyElement.cs
- ExtensibleClassFactory.cs
- EntityChangedParams.cs
- XamlToRtfParser.cs
- LineSegment.cs
- Latin1Encoding.cs
- DataGridViewLinkCell.cs
- TextElementAutomationPeer.cs
- UIElementPropertyUndoUnit.cs
- OleStrCAMarshaler.cs
- HighContrastHelper.cs
- Root.cs
- EntityTemplateFactory.cs
- HttpException.cs
- SmtpCommands.cs
- NetStream.cs
- OciEnlistContext.cs
- TraceInternal.cs