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
- ResourcePool.cs
- MulticastIPAddressInformationCollection.cs
- StringKeyFrameCollection.cs
- CompiledRegexRunner.cs
- ControlBuilder.cs
- WeakEventManager.cs
- DataGridViewCellStyleChangedEventArgs.cs
- UnauthorizedWebPart.cs
- StatusBar.cs
- PersonalizableAttribute.cs
- AttributeTable.cs
- wmiprovider.cs
- ValuePatternIdentifiers.cs
- EDesignUtil.cs
- SystemTcpStatistics.cs
- storagemappingitemcollection.viewdictionary.cs
- ToolStripPanelRenderEventArgs.cs
- CopyOfAction.cs
- StrokeNodeData.cs
- GridLengthConverter.cs
- SendReply.cs
- TemplateParser.cs
- MailDefinitionBodyFileNameEditor.cs
- DateTimeFormat.cs
- Panel.cs
- SignatureDescription.cs
- SerializationInfo.cs
- PngBitmapDecoder.cs
- XmlChildEnumerator.cs
- SerializationEventsCache.cs
- CardSpaceException.cs
- ScrollItemProviderWrapper.cs
- SEHException.cs
- CTreeGenerator.cs
- QueryResponse.cs
- TraversalRequest.cs
- SelectionPatternIdentifiers.cs
- GeometryConverter.cs
- TimelineGroup.cs
- ConstraintEnumerator.cs
- AsyncCodeActivityContext.cs
- ColorContextHelper.cs
- XmlNodeWriter.cs
- HandlerMappingMemo.cs
- XpsColorContext.cs
- DocumentScope.cs
- StylusButton.cs
- StorageBasedPackageProperties.cs
- Stackframe.cs
- TypedTableGenerator.cs
- HyperLinkDesigner.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- WebPartCollection.cs
- ResourceReader.cs
- FacetValueContainer.cs
- RequestSecurityTokenForGetBrowserToken.cs
- MetadataArtifactLoader.cs
- SqlDeflator.cs
- ImageField.cs
- MessageQueuePermissionEntryCollection.cs
- PseudoWebRequest.cs
- WebReferencesBuildProvider.cs
- SQLResource.cs
- FileDialog_Vista.cs
- UpDownEvent.cs
- XsltQilFactory.cs
- ActivationServices.cs
- ModelUIElement3D.cs
- PersonalizationStateQuery.cs
- PhysicalFontFamily.cs
- BamlVersionHeader.cs
- HashHelpers.cs
- DockPattern.cs
- ManualResetEvent.cs
- RectAnimationUsingKeyFrames.cs
- XmlnsDictionary.cs
- ConfigXmlDocument.cs
- XmlUtil.cs
- APCustomTypeDescriptor.cs
- wmiprovider.cs
- SimpleFileLog.cs
- Thumb.cs
- DataGridViewRowPostPaintEventArgs.cs
- GridViewRow.cs
- XmlnsPrefixAttribute.cs
- MouseEventArgs.cs
- CapabilitiesPattern.cs
- CheckoutException.cs
- MenuItemStyle.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- OrderedDictionary.cs
- GestureRecognizer.cs
- SizeAnimationClockResource.cs
- MulticastNotSupportedException.cs
- WindowsButton.cs
- BindingManagerDataErrorEventArgs.cs
- CharUnicodeInfo.cs
- _NetRes.cs
- LocatorBase.cs
- MediaPlayerState.cs