Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- BooleanConverter.cs
- StreamGeometry.cs
- SettingsSavedEventArgs.cs
- MetadataSet.cs
- XamlPathDataSerializer.cs
- TextAction.cs
- GridViewColumnCollectionChangedEventArgs.cs
- RepeatInfo.cs
- ObjectQuery.cs
- DataRelation.cs
- WhitespaceRuleLookup.cs
- IdleTimeoutMonitor.cs
- CapabilitiesPattern.cs
- ScrollProviderWrapper.cs
- SqlBulkCopyColumnMappingCollection.cs
- BaseCodeDomTreeGenerator.cs
- MetadataSerializer.cs
- XmlCharCheckingWriter.cs
- NavigationExpr.cs
- SoapCommonClasses.cs
- HtmlHistory.cs
- XsdBuildProvider.cs
- ElementNotAvailableException.cs
- SequenceNumber.cs
- ListViewItemMouseHoverEvent.cs
- RotateTransform.cs
- IriParsingElement.cs
- CommandLineParser.cs
- XmlDataSource.cs
- LayoutEvent.cs
- ConfigurationSectionCollection.cs
- CloudCollection.cs
- MD5CryptoServiceProvider.cs
- GuidTagList.cs
- CharacterBufferReference.cs
- PopupControlService.cs
- AutomationTextAttribute.cs
- TreeIterator.cs
- DataPagerField.cs
- DataColumnMapping.cs
- BuiltInPermissionSets.cs
- HitTestWithPointDrawingContextWalker.cs
- LinqDataSource.cs
- PriorityQueue.cs
- FixedDocumentSequencePaginator.cs
- MetabaseSettings.cs
- QueryRewriter.cs
- IIS7UserPrincipal.cs
- OutputScopeManager.cs
- ClientConvert.cs
- StreamGeometry.cs
- Invariant.cs
- GridViewUpdatedEventArgs.cs
- WindowsStartMenu.cs
- ExtractorMetadata.cs
- _HeaderInfo.cs
- PersistenceProviderBehavior.cs
- NetworkInformationPermission.cs
- Cursor.cs
- ConfigurationSectionCollection.cs
- DataContractSerializerServiceBehavior.cs
- EventLogConfiguration.cs
- BamlWriter.cs
- Console.cs
- EntityContainerEntitySet.cs
- NumericUpDown.cs
- DataRecordInfo.cs
- GenericsInstances.cs
- MobileFormsAuthentication.cs
- DataGridViewBand.cs
- MasterPage.cs
- XPathConvert.cs
- SingleStorage.cs
- ParagraphResult.cs
- RelOps.cs
- SourceFilter.cs
- HtmlObjectListAdapter.cs
- LambdaCompiler.Lambda.cs
- ISAPIWorkerRequest.cs
- HashHelper.cs
- HtmlDocument.cs
- DomNameTable.cs
- PointCollection.cs
- UIElementParaClient.cs
- WorkflowItemPresenter.cs
- StackOverflowException.cs
- URL.cs
- ReflectTypeDescriptionProvider.cs
- InheritanceContextHelper.cs
- ByeOperation11AsyncResult.cs
- MouseGestureConverter.cs
- TypefaceCollection.cs
- ParameterCollection.cs
- WindowsIdentity.cs
- SoapFault.cs
- HtmlElementCollection.cs
- HtmlElementErrorEventArgs.cs
- FileIOPermission.cs
- ConsumerConnectionPointCollection.cs
- CommandLibraryHelper.cs