Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeAttachEventStatement.cs / 1305376 / CodeAttachEventStatement.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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. /// ///// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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
- SafeBitVector32.cs
- Validator.cs
- DataViewManagerListItemTypeDescriptor.cs
- SqlStream.cs
- SecurityException.cs
- HebrewNumber.cs
- BamlTreeNode.cs
- DataGridViewRowsRemovedEventArgs.cs
- PackWebRequest.cs
- SafeEventLogWriteHandle.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Property.cs
- SqlCommand.cs
- CursorConverter.cs
- SystemMulticastIPAddressInformation.cs
- QueryAccessibilityHelpEvent.cs
- VSWCFServiceContractGenerator.cs
- ElementAction.cs
- OleDbInfoMessageEvent.cs
- TreeViewTemplateSelector.cs
- CustomErrorsSection.cs
- DataContractJsonSerializer.cs
- TypedCompletedAsyncResult.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- DrawingState.cs
- TextSimpleMarkerProperties.cs
- SafeNativeMethods.cs
- Encoder.cs
- RecipientInfo.cs
- JsonFormatWriterGenerator.cs
- PrintController.cs
- ConsoleKeyInfo.cs
- Highlights.cs
- DependencyObjectProvider.cs
- HttpException.cs
- milrender.cs
- DLinqTableProvider.cs
- TimeoutException.cs
- PropertyCondition.cs
- SplineQuaternionKeyFrame.cs
- TcpServerChannel.cs
- Matrix3DConverter.cs
- TextRenderingModeValidation.cs
- dataobject.cs
- EventSourceCreationData.cs
- PersonalizationAdministration.cs
- DecimalKeyFrameCollection.cs
- Classification.cs
- DbException.cs
- Root.cs
- HeaderUtility.cs
- ToolStripItemCollection.cs
- HashMembershipCondition.cs
- CodeArrayIndexerExpression.cs
- ArraySortHelper.cs
- ResourceExpressionEditorSheet.cs
- BufferedStream.cs
- StyleBamlTreeBuilder.cs
- ListBox.cs
- TextEditorLists.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- FormsAuthentication.cs
- CapabilitiesRule.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- ProxyGenerationError.cs
- MessageBodyDescription.cs
- IntMinMaxAggregationOperator.cs
- AssociatedControlConverter.cs
- UserPrincipalNameElement.cs
- MulticastOption.cs
- ValueUtilsSmi.cs
- sitestring.cs
- ConfigurationManagerInternalFactory.cs
- GACMembershipCondition.cs
- ControlValuePropertyAttribute.cs
- ComponentSerializationService.cs
- NumberFormatInfo.cs
- DriveInfo.cs
- followingsibling.cs
- HostingEnvironmentSection.cs
- DataGridItemAttachedStorage.cs
- EventDescriptor.cs
- XPathSelfQuery.cs
- ParameterCollection.cs
- DataBinding.cs
- DispatcherFrame.cs
- ColumnBinding.cs
- Transform3DGroup.cs
- HwndSourceParameters.cs
- QilPatternFactory.cs
- RoleManagerModule.cs
- HostSecurityManager.cs
- HandleTable.cs
- Block.cs
- DataServiceException.cs
- PageBreakRecord.cs
- BindMarkupExtensionSerializer.cs
- ListenerElementsCollection.cs
- StringConverter.cs
- StructuralType.cs