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
- Pair.cs
- PermissionToken.cs
- SimpleWebHandlerParser.cs
- UserNameSecurityTokenParameters.cs
- MouseEventArgs.cs
- Dispatcher.cs
- CatalogZoneAutoFormat.cs
- EntityClientCacheEntry.cs
- TypeValidationEventArgs.cs
- WindowsRichEditRange.cs
- TableLayoutStyleCollection.cs
- PropertyGridView.cs
- CompiledAction.cs
- UnmanagedMemoryStream.cs
- PropertyDescriptorCollection.cs
- ConfigurationValidatorBase.cs
- Symbol.cs
- XPathNodeHelper.cs
- PropertyKey.cs
- RsaSecurityTokenAuthenticator.cs
- Int32Rect.cs
- EntitySqlQueryCacheEntry.cs
- InnerItemCollectionView.cs
- MenuAutomationPeer.cs
- RowBinding.cs
- IPEndPoint.cs
- FormViewInsertEventArgs.cs
- GridViewRowCollection.cs
- RoutedEventValueSerializer.cs
- Emitter.cs
- BitmapPalette.cs
- TypeGeneratedEventArgs.cs
- SystemWebCachingSectionGroup.cs
- TableLayoutPanel.cs
- LinqDataSourceValidationException.cs
- Win32MouseDevice.cs
- ResourceManager.cs
- DBPropSet.cs
- invalidudtexception.cs
- XmlSignatureProperties.cs
- RegistrationProxy.cs
- XmlObjectSerializerContext.cs
- PropertyValidationContext.cs
- HandlerFactoryCache.cs
- MimeTextImporter.cs
- ISessionStateStore.cs
- mediaeventargs.cs
- ConfigurationException.cs
- DataGridViewRowConverter.cs
- _NativeSSPI.cs
- SystemTcpConnection.cs
- WebPartConnectionsDisconnectVerb.cs
- XsdDataContractExporter.cs
- PointLight.cs
- oledbmetadatacolumnnames.cs
- SHA1CryptoServiceProvider.cs
- CodeAttributeArgument.cs
- DrawItemEvent.cs
- SerializableAttribute.cs
- InvalidWorkflowException.cs
- HttpCapabilitiesEvaluator.cs
- InvokeProviderWrapper.cs
- DockPattern.cs
- TlsSspiNegotiation.cs
- TCEAdapterGenerator.cs
- HttpWebRequestElement.cs
- CodeSubDirectory.cs
- WindowsStatusBar.cs
- ValidationErrorEventArgs.cs
- Task.cs
- XPathAxisIterator.cs
- DbParameterCollectionHelper.cs
- ScrollBarRenderer.cs
- OperationAbortedException.cs
- InvalidStoreProtectionKeyException.cs
- LinkAreaEditor.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ExtensionSimplifierMarkupObject.cs
- RectangleConverter.cs
- RelationshipFixer.cs
- _IPv4Address.cs
- MenuItemStyle.cs
- PageMediaType.cs
- Imaging.cs
- DeploymentSectionCache.cs
- SafeMemoryMappedViewHandle.cs
- WindowsSolidBrush.cs
- ConfigurationSectionGroup.cs
- BinarySerializer.cs
- DataSourceExpressionCollection.cs
- StreamDocument.cs
- UIServiceHelper.cs
- PrivacyNoticeBindingElement.cs
- BuiltInExpr.cs
- MergeEnumerator.cs
- DataList.cs
- LateBoundBitmapDecoder.cs
- NativeMethods.cs
- WriterOutput.cs
- Profiler.cs