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
- X509CertificateCollection.cs
- HandleCollector.cs
- XmlSchemaExporter.cs
- DataBoundControl.cs
- HwndTarget.cs
- Validator.cs
- Pen.cs
- BooleanStorage.cs
- XmlAttributeProperties.cs
- WorkflowDataContext.cs
- ChangesetResponse.cs
- FilterEventArgs.cs
- StickyNoteHelper.cs
- columnmapkeybuilder.cs
- SchemaExporter.cs
- FieldBuilder.cs
- BindingBase.cs
- DataBindingExpressionBuilder.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- Pool.cs
- BuildResult.cs
- DbConnectionPoolGroup.cs
- NonSerializedAttribute.cs
- initElementDictionary.cs
- RelationshipEnd.cs
- RootBuilder.cs
- AsyncResult.cs
- SessionParameter.cs
- UnsafeNativeMethods.cs
- CompatibleComparer.cs
- DBSchemaTable.cs
- MenuScrollingVisibilityConverter.cs
- Shared.cs
- ByteStack.cs
- WindowsListViewSubItem.cs
- VisemeEventArgs.cs
- MouseGestureConverter.cs
- CodeTypeConstructor.cs
- FrameDimension.cs
- AttributeCollection.cs
- WmlPanelAdapter.cs
- ProcessModuleCollection.cs
- Executor.cs
- SpotLight.cs
- SqlProcedureAttribute.cs
- parserscommon.cs
- SchemaObjectWriter.cs
- ApplicationServiceManager.cs
- SoapEnumAttribute.cs
- DiffuseMaterial.cs
- TextSelection.cs
- CustomAttributeSerializer.cs
- PointLightBase.cs
- Canvas.cs
- WebPartExportVerb.cs
- CommandLibraryHelper.cs
- xmlglyphRunInfo.cs
- BrowserCapabilitiesFactory.cs
- WinEventWrap.cs
- ExecutionContext.cs
- KeyGesture.cs
- CustomErrorCollection.cs
- TraceLog.cs
- AssociatedControlConverter.cs
- ZoomComboBox.cs
- RegexParser.cs
- DataQuery.cs
- ViewLoader.cs
- ResourcesBuildProvider.cs
- DataStreams.cs
- SamlNameIdentifierClaimResource.cs
- GZipStream.cs
- XpsSerializationManagerAsync.cs
- CompareInfo.cs
- FactoryGenerator.cs
- InputReportEventArgs.cs
- RoleManagerModule.cs
- EntityUtil.cs
- ExpressionParser.cs
- SafeProcessHandle.cs
- XPathMultyIterator.cs
- ping.cs
- ClientBuildManager.cs
- ActivityDesignerAccessibleObject.cs
- GridItemPattern.cs
- DocumentPageHost.cs
- CrossAppDomainChannel.cs
- ConfigurationSchemaErrors.cs
- ListViewSortEventArgs.cs
- HashRepartitionStream.cs
- QilLiteral.cs
- OpacityConverter.cs
- UriScheme.cs
- Propagator.JoinPropagator.cs
- WebWorkflowRole.cs
- WindowsListView.cs
- MultipleViewPatternIdentifiers.cs
- AssemblyGen.cs
- SafeRightsManagementSessionHandle.cs
- CompilationSection.cs