Code:
/ 4.0 / 4.0 / untmp / 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. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StartUpEventArgs.cs
- EmptyEnumerable.cs
- ConnectionPointCookie.cs
- MatrixUtil.cs
- SSmlParser.cs
- SingleAnimation.cs
- CompilerError.cs
- HeaderCollection.cs
- Animatable.cs
- DataGridItemCollection.cs
- XslTransformFileEditor.cs
- InvalidOleVariantTypeException.cs
- DataColumnCollection.cs
- ModuleBuilder.cs
- IWorkflowDebuggerService.cs
- Select.cs
- XpsInterleavingPolicy.cs
- RIPEMD160.cs
- ControllableStoryboardAction.cs
- CodeArrayCreateExpression.cs
- RichTextBoxAutomationPeer.cs
- WebPartVerb.cs
- ProviderException.cs
- TypefaceMetricsCache.cs
- TextContainer.cs
- OptimisticConcurrencyException.cs
- _TLSstream.cs
- ExeConfigurationFileMap.cs
- FileVersion.cs
- Signature.cs
- DefaultPrintController.cs
- ConstrainedDataObject.cs
- WebPartConnectionsCancelEventArgs.cs
- ExpressionEditorAttribute.cs
- X500Name.cs
- ReadOnlyDictionary.cs
- InvalidAsynchronousStateException.cs
- WindowsFormsHostAutomationPeer.cs
- CryptoApi.cs
- securestring.cs
- ClockGroup.cs
- ContextBase.cs
- SeekableMessageNavigator.cs
- PartialArray.cs
- TrustSection.cs
- PointCollection.cs
- DynamicAttribute.cs
- XmlTypeMapping.cs
- XmlSchemaChoice.cs
- SpellerError.cs
- IriParsingElement.cs
- UnsafePeerToPeerMethods.cs
- HttpStreamMessageEncoderFactory.cs
- DbProviderFactories.cs
- FreezableOperations.cs
- XmlElementList.cs
- OutArgument.cs
- UseManagedPresentationBindingElementImporter.cs
- SizeChangedInfo.cs
- TextServicesCompartmentEventSink.cs
- GifBitmapDecoder.cs
- OutputCache.cs
- LazyTextWriterCreator.cs
- OleDbCommandBuilder.cs
- MSAANativeProvider.cs
- QueryPageSettingsEventArgs.cs
- KeyGesture.cs
- XamlStackWriter.cs
- PackageProperties.cs
- Typography.cs
- SimpleHandlerBuildProvider.cs
- SimpleHandlerBuildProvider.cs
- ParallelTimeline.cs
- CachedPathData.cs
- Trace.cs
- Input.cs
- LinkArea.cs
- Missing.cs
- VBIdentifierName.cs
- TransactionChannel.cs
- SharedHttpsTransportManager.cs
- XmlSchemaImporter.cs
- CancelEventArgs.cs
- EntityModelBuildProvider.cs
- ButtonField.cs
- PreviewPrintController.cs
- WindowsAuthenticationModule.cs
- SafeRightsManagementPubHandle.cs
- Vector3D.cs
- PrivilegeNotHeldException.cs
- MimeMapping.cs
- log.cs
- PageRequestManager.cs
- TypeForwardedToAttribute.cs
- LabelLiteral.cs
- FolderLevelBuildProviderCollection.cs
- TreeView.cs
- SQLMembershipProvider.cs
- SchemaTableOptionalColumn.cs
- ModuleBuilder.cs