Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// The new listener. /// ///// 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; } } } } // 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
- InstanceOwner.cs
- RealizationDrawingContextWalker.cs
- CommentEmitter.cs
- EarlyBoundInfo.cs
- TextEditorDragDrop.cs
- DiscoveryReference.cs
- VBIdentifierNameEditor.cs
- DoubleLink.cs
- FocusTracker.cs
- SaveLedgerEntryRequest.cs
- DelegatingMessage.cs
- XmlCDATASection.cs
- ApplicationCommands.cs
- DataBindingCollectionConverter.cs
- ProcessModuleCollection.cs
- GACMembershipCondition.cs
- ResourceCodeDomSerializer.cs
- HttpAsyncResult.cs
- DependencySource.cs
- JsonXmlDataContract.cs
- GenericEnumConverter.cs
- FileClassifier.cs
- VolatileEnlistmentState.cs
- FamilyMapCollection.cs
- FixedSOMPageElement.cs
- ResourceExpression.cs
- TextTreeObjectNode.cs
- Processor.cs
- ProcessHostMapPath.cs
- GetWinFXPath.cs
- HttpCacheParams.cs
- DefaultPropertyAttribute.cs
- SigningCredentials.cs
- LinkUtilities.cs
- NameValueCollection.cs
- SelectionManager.cs
- MailDefinition.cs
- Selection.cs
- TTSEngineTypes.cs
- TextElement.cs
- WindowsTreeView.cs
- WebPartConnectVerb.cs
- ColumnTypeConverter.cs
- LayoutTable.cs
- StylusLogic.cs
- AspProxy.cs
- Token.cs
- Cursor.cs
- TextRange.cs
- StorageEntityContainerMapping.cs
- EmptyEnumerable.cs
- CorrelationToken.cs
- DiscoveryDocumentLinksPattern.cs
- UnconditionalPolicy.cs
- Rect3DConverter.cs
- SortKey.cs
- ImageCollectionCodeDomSerializer.cs
- xsdvalidator.cs
- streamingZipPartStream.cs
- SubtreeProcessor.cs
- TextEditor.cs
- LogStream.cs
- DataGridViewAutoSizeModeEventArgs.cs
- CompiledXpathExpr.cs
- CachedBitmap.cs
- TemplateBaseAction.cs
- CellQuery.cs
- JobInputBins.cs
- SecurityHelper.cs
- DeclaredTypeElementCollection.cs
- NativeMethods.cs
- Baml2006Reader.cs
- AssemblyInfo.cs
- PageEventArgs.cs
- DesignTimeParseData.cs
- LinkConverter.cs
- Literal.cs
- FileSystemEventArgs.cs
- ToolStripSettings.cs
- AssignDesigner.xaml.cs
- DbParameterHelper.cs
- WebScriptEnablingElement.cs
- FileDialogPermission.cs
- Pens.cs
- XmlSiteMapProvider.cs
- XmlDataLoader.cs
- EntityDataSourceDataSelection.cs
- StringTraceRecord.cs
- PingOptions.cs
- InputQueue.cs
- Documentation.cs
- Timer.cs
- CrossContextChannel.cs
- WebSysDescriptionAttribute.cs
- DocumentStatusResources.cs
- COM2ComponentEditor.cs
- LogicalExpressionEditor.cs
- BreakRecordTable.cs
- Compilation.cs
- ClientRuntimeConfig.cs