Code:
/ FX-1434 / FX-1434 / 1.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
- SQLDateTime.cs
- ClientCultureInfo.cs
- Calendar.cs
- ISCIIEncoding.cs
- MenuAdapter.cs
- PnrpPermission.cs
- OleDbError.cs
- StringSorter.cs
- HealthMonitoringSectionHelper.cs
- LinkedList.cs
- TemplateControl.cs
- RenderCapability.cs
- HebrewCalendar.cs
- UniqueEventHelper.cs
- EdmItemError.cs
- DriveInfo.cs
- EventData.cs
- SettingsAttributes.cs
- Int32AnimationUsingKeyFrames.cs
- BuildProviderCollection.cs
- TextLineBreak.cs
- Rotation3DAnimationUsingKeyFrames.cs
- WebRequestModulesSection.cs
- UrlPropertyAttribute.cs
- LinqDataSourceUpdateEventArgs.cs
- ColumnMapTranslator.cs
- _BufferOffsetSize.cs
- DataObjectPastingEventArgs.cs
- ObjectFullSpanRewriter.cs
- RedBlackList.cs
- Dispatcher.cs
- CodeMemberMethod.cs
- SymDocumentType.cs
- CompositeFontParser.cs
- WebPartHelpVerb.cs
- ClientScriptManager.cs
- EncodingNLS.cs
- WebChannelFactory.cs
- UIElementCollection.cs
- SelectionProcessor.cs
- _KerberosClient.cs
- SectionRecord.cs
- ScriptMethodAttribute.cs
- GCHandleCookieTable.cs
- ImpersonationContext.cs
- PenCursorManager.cs
- DesignBindingEditor.cs
- Color.cs
- ActivityDesigner.cs
- SplitterCancelEvent.cs
- SqlBuilder.cs
- SelectorItemAutomationPeer.cs
- ClientUtils.cs
- XDeferredAxisSource.cs
- ActivationServices.cs
- BackgroundFormatInfo.cs
- DockAndAnchorLayout.cs
- PermissionListSet.cs
- LinearQuaternionKeyFrame.cs
- ViewManager.cs
- OnOperation.cs
- ResourceSetExpression.cs
- AutoResetEvent.cs
- Activator.cs
- XPathDocumentNavigator.cs
- SequenceQuery.cs
- ActiveXHost.cs
- CodeArrayIndexerExpression.cs
- MLangCodePageEncoding.cs
- XPathNodeList.cs
- errorpatternmatcher.cs
- RegexCharClass.cs
- IFormattable.cs
- PrimarySelectionGlyph.cs
- X509InitiatorCertificateClientElement.cs
- ResourcePermissionBase.cs
- OleDbSchemaGuid.cs
- SizeKeyFrameCollection.cs
- ChineseLunisolarCalendar.cs
- DocumentPaginator.cs
- DataGridViewSortCompareEventArgs.cs
- CombinedGeometry.cs
- HttpPostServerProtocol.cs
- LineSegment.cs
- ActiveXMessageFormatter.cs
- SqlConnectionPoolProviderInfo.cs
- HttpInputStream.cs
- HandleRef.cs
- SessionStateUtil.cs
- ServicePointManager.cs
- RoutedEventValueSerializer.cs
- ObjectAssociationEndMapping.cs
- ObjectSecurity.cs
- ExternalFile.cs
- PinnedBufferMemoryStream.cs
- SerializerWriterEventHandlers.cs
- FileInfo.cs
- SqlDataSourceEnumerator.cs
- XmlSchemaGroupRef.cs
- EncryptedData.cs