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
- Image.cs
- TemplatePagerField.cs
- NameService.cs
- Mouse.cs
- ColumnWidthChangedEvent.cs
- EntityCodeGenerator.cs
- DataGridViewCellStyleConverter.cs
- MultilineStringConverter.cs
- WCFBuildProvider.cs
- SessionStateUtil.cs
- BindStream.cs
- LicenseException.cs
- XmlByteStreamReader.cs
- DriveNotFoundException.cs
- SMSvcHost.cs
- TcpSocketManager.cs
- DocumentViewerAutomationPeer.cs
- Utility.cs
- FormsAuthenticationEventArgs.cs
- CalendarTable.cs
- ConfigurationPropertyAttribute.cs
- EntryPointNotFoundException.cs
- WeakEventManager.cs
- ValueSerializerAttribute.cs
- _PooledStream.cs
- WebPartUserCapability.cs
- SerializationAttributes.cs
- OperationBehaviorAttribute.cs
- securitycriticaldataClass.cs
- ObjectDataSourceFilteringEventArgs.cs
- TextSelectionHelper.cs
- MissingSatelliteAssemblyException.cs
- DecoderNLS.cs
- _CookieModule.cs
- ElementProxy.cs
- XmlText.cs
- GridViewSelectEventArgs.cs
- HtmlSelect.cs
- ListItemViewControl.cs
- QueryOptionExpression.cs
- XPathSelectionIterator.cs
- DbBuffer.cs
- NativeMsmqMessage.cs
- FlatButtonAppearance.cs
- FileSystemInfo.cs
- WebHttpSecurityElement.cs
- PointConverter.cs
- RevocationPoint.cs
- NavigationWindowAutomationPeer.cs
- XmlUtf8RawTextWriter.cs
- DataGridComboBoxColumn.cs
- UrlPath.cs
- MappingException.cs
- DbDeleteCommandTree.cs
- SchemaElementLookUpTable.cs
- ListViewItem.cs
- COM2ColorConverter.cs
- SystemWebExtensionsSectionGroup.cs
- WebReferencesBuildProvider.cs
- PageEventArgs.cs
- OrderedDictionary.cs
- JoinGraph.cs
- HasCopySemanticsAttribute.cs
- InternalTypeHelper.cs
- InputScope.cs
- _OSSOCK.cs
- SafeNativeMethods.cs
- ComponentTray.cs
- EnumValidator.cs
- AsnEncodedData.cs
- String.cs
- ScriptManagerProxy.cs
- BinarySecretSecurityToken.cs
- RenderData.cs
- DataGridViewCellStyleChangedEventArgs.cs
- StackBuilderSink.cs
- RtfFormatStack.cs
- UnconditionalPolicy.cs
- XmlAttributeOverrides.cs
- _OverlappedAsyncResult.cs
- PointLightBase.cs
- StatementContext.cs
- Timeline.cs
- Span.cs
- MessageBox.cs
- MessagePropertyDescription.cs
- _AutoWebProxyScriptHelper.cs
- ParentQuery.cs
- ValidationErrorEventArgs.cs
- TextViewSelectionProcessor.cs
- TypeSystem.cs
- ProxyHwnd.cs
- WebPartManagerInternals.cs
- CodeAccessPermission.cs
- FamilyTypeface.cs
- SoapCodeExporter.cs
- QilGenerator.cs
- SoapFaultCodes.cs
- FormViewModeEventArgs.cs
- _ConnectOverlappedAsyncResult.cs