Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeAttachEventStatement.cs / 1305376 / CodeAttachEventStatement.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// The new listener. /// ///// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// The new listener. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RunInstallerAttribute.cs
- ExtensionSimplifierMarkupObject.cs
- CodeArrayIndexerExpression.cs
- WebHttpElement.cs
- PeerEndPoint.cs
- AdCreatedEventArgs.cs
- BuilderPropertyEntry.cs
- DrawingContextWalker.cs
- MessageAction.cs
- QilNode.cs
- DataTableNameHandler.cs
- MetadataHelper.cs
- InlinedAggregationOperator.cs
- ToolStripDropDownMenu.cs
- Environment.cs
- ScrollViewerAutomationPeer.cs
- DispatchWrapper.cs
- CodeTryCatchFinallyStatement.cs
- CommandValueSerializer.cs
- AutoScrollHelper.cs
- PolyQuadraticBezierSegment.cs
- HashSetDebugView.cs
- WindowsProgressbar.cs
- ThicknessAnimationUsingKeyFrames.cs
- XmlWriter.cs
- BitmapEffectState.cs
- HttpListenerRequestTraceRecord.cs
- NamespaceListProperty.cs
- MsmqIntegrationInputChannel.cs
- NotificationContext.cs
- SpellerStatusTable.cs
- DefaultProxySection.cs
- Rect3DValueSerializer.cs
- CacheForPrimitiveTypes.cs
- Transform3DGroup.cs
- BooleanKeyFrameCollection.cs
- ArrayTypeMismatchException.cs
- BindingOperations.cs
- BitArray.cs
- NetworkInterface.cs
- VirtualPathUtility.cs
- MetadataCache.cs
- odbcmetadatacollectionnames.cs
- NetNamedPipeSecurityElement.cs
- Int16.cs
- SkipQueryOptionExpression.cs
- WindowsScrollBar.cs
- Point3D.cs
- COM2IDispatchConverter.cs
- Guid.cs
- XsltLibrary.cs
- Restrictions.cs
- ObjectDataSourceView.cs
- AutomationPatternInfo.cs
- NestedContainer.cs
- unitconverter.cs
- TwoPhaseCommitProxy.cs
- EncoderParameter.cs
- AQNBuilder.cs
- RoutingService.cs
- ButtonPopupAdapter.cs
- DataSourceComponent.cs
- BoundPropertyEntry.cs
- ChoiceConverter.cs
- BuildProvidersCompiler.cs
- Application.cs
- BuildProvidersCompiler.cs
- PrintingPermission.cs
- BuildManager.cs
- DataTransferEventArgs.cs
- ContextInformation.cs
- PostBackTrigger.cs
- MetadataFile.cs
- BaseServiceProvider.cs
- LoadRetryAsyncResult.cs
- RelatedView.cs
- Content.cs
- DocumentOrderQuery.cs
- MetadataException.cs
- BamlCollectionHolder.cs
- SafeCryptHandles.cs
- BitmapImage.cs
- followingquery.cs
- DbConnectionPoolGroupProviderInfo.cs
- SqlXml.cs
- CodeExporter.cs
- SubpageParaClient.cs
- FrameworkElementFactory.cs
- GridPattern.cs
- CaretElement.cs
- XmlAttribute.cs
- ValueExpressions.cs
- HttpListenerTimeoutManager.cs
- DispatcherObject.cs
- HorizontalAlignConverter.cs
- ServiceHostingEnvironment.cs
- TextBox.cs
- AccessibleObject.cs
- ExecutionPropertyManager.cs
- XmlSerializerNamespaces.cs