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
- ToolStripLabel.cs
- OutputScope.cs
- HandleCollector.cs
- SystemPens.cs
- PolyBezierSegment.cs
- EmptyEnumerator.cs
- ToolboxItem.cs
- MaskedTextProvider.cs
- SafeWaitHandle.cs
- StickyNoteHelper.cs
- ParentQuery.cs
- glyphs.cs
- XmlNamespaceManager.cs
- RsaSecurityTokenParameters.cs
- XappLauncher.cs
- EFAssociationProvider.cs
- WebPartHelpVerb.cs
- _AutoWebProxyScriptHelper.cs
- DBSchemaTable.cs
- ButtonChrome.cs
- IndexedString.cs
- Int16Converter.cs
- WebBrowserHelper.cs
- WebPartCatalogAddVerb.cs
- DataServiceRequestOfT.cs
- DataListDesigner.cs
- DbException.cs
- StatusBarDesigner.cs
- DecimalAnimationBase.cs
- CqlWriter.cs
- ObjectDesignerDataSourceView.cs
- VariableAction.cs
- SchemaImporterExtensionElement.cs
- LogicalTreeHelper.cs
- AspCompat.cs
- FlowLayoutSettings.cs
- ProtocolsConfigurationHandler.cs
- LocatorManager.cs
- Volatile.cs
- GenerateTemporaryAssemblyTask.cs
- DataListCommandEventArgs.cs
- Pointer.cs
- DbgCompiler.cs
- TogglePatternIdentifiers.cs
- GetParentChain.cs
- DesignerSerializationVisibilityAttribute.cs
- StaticContext.cs
- WorkflowInstanceProxy.cs
- Gdiplus.cs
- StrokeIntersection.cs
- ToolboxComponentsCreatedEventArgs.cs
- PaintValueEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- FuncCompletionCallbackWrapper.cs
- TextBlockAutomationPeer.cs
- SoapParser.cs
- NonVisualControlAttribute.cs
- MissingMemberException.cs
- VirtualPathProvider.cs
- SynchronizationLockException.cs
- NameValuePermission.cs
- HtmlInputReset.cs
- CompensationHandlingFilter.cs
- AnimatedTypeHelpers.cs
- WinFormsComponentEditor.cs
- StringArrayConverter.cs
- InterleavedZipPartStream.cs
- EmissiveMaterial.cs
- FormView.cs
- GeneralTransform3DTo2D.cs
- DbProviderFactory.cs
- SafeArrayRankMismatchException.cs
- TypeBuilder.cs
- CAGDesigner.cs
- SignatureDescription.cs
- SafeWaitHandle.cs
- ObjectStorage.cs
- DispatcherProcessingDisabled.cs
- TaskFactory.cs
- Visitor.cs
- AnnotationComponentManager.cs
- CustomGrammar.cs
- InputLanguageSource.cs
- DataAccessException.cs
- RuntimeConfig.cs
- JapaneseCalendar.cs
- EntityDataSourceColumn.cs
- TypeTypeConverter.cs
- ToolStripControlHost.cs
- OletxResourceManager.cs
- NativeWindow.cs
- VBCodeProvider.cs
- AppSecurityManager.cs
- EntityConnection.cs
- HttpRuntimeSection.cs
- PaginationProgressEventArgs.cs
- AppSettingsExpressionBuilder.cs
- SubMenuStyle.cs
- basecomparevalidator.cs
- DiscoveryMessageSequence.cs