Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }/// The new listener. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlCommandBuilder.cs
- DrawToolTipEventArgs.cs
- CodeTypeOfExpression.cs
- XmlFormatExtensionPointAttribute.cs
- OlePropertyStructs.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- BufferedGraphics.cs
- ProxyWebPart.cs
- ItemCheckEvent.cs
- ETagAttribute.cs
- TemplateControl.cs
- CatalogZone.cs
- AutoGeneratedFieldProperties.cs
- DataContract.cs
- MessageSecurityVersion.cs
- RequestSecurityTokenSerializer.cs
- DataServiceHostWrapper.cs
- SerializationException.cs
- ExpressionList.cs
- PixelShader.cs
- AssociationSetMetadata.cs
- ObjectQuery.cs
- FormatterServicesNoSerializableCheck.cs
- XmlLangPropertyAttribute.cs
- WindowsMenu.cs
- DtdParser.cs
- SqlCommandAsyncResult.cs
- GridLengthConverter.cs
- XmlAtomicValue.cs
- ListViewAutomationPeer.cs
- SQLInt64.cs
- HttpResponseInternalWrapper.cs
- Gdiplus.cs
- DependsOnAttribute.cs
- AnnotationResourceCollection.cs
- IndicFontClient.cs
- SessionStateModule.cs
- CommandManager.cs
- FloatSumAggregationOperator.cs
- SrgsRuleRef.cs
- TreeNodeCollection.cs
- WebPartsPersonalizationAuthorization.cs
- SqlDataSourceEnumerator.cs
- TraceLevelHelper.cs
- XamlTreeBuilder.cs
- SimpleFieldTemplateUserControl.cs
- CodeTypeDeclarationCollection.cs
- MessageHeader.cs
- UniqueConstraint.cs
- SettingsAttributeDictionary.cs
- RelatedImageListAttribute.cs
- SmtpAuthenticationManager.cs
- SafeFileMapViewHandle.cs
- StringComparer.cs
- BaseTemplateParser.cs
- MethodToken.cs
- NaturalLanguageHyphenator.cs
- MenuCommands.cs
- SystemWebCachingSectionGroup.cs
- UrlMapping.cs
- HttpException.cs
- CheckBoxFlatAdapter.cs
- path.cs
- storepermission.cs
- OrderByExpression.cs
- XPathSelectionIterator.cs
- Native.cs
- CLSCompliantAttribute.cs
- ZipIOCentralDirectoryFileHeader.cs
- DPTypeDescriptorContext.cs
- SmiEventSink_DeferedProcessing.cs
- FormsAuthenticationEventArgs.cs
- XmlCDATASection.cs
- AsmxEndpointPickerExtension.cs
- ServiceManager.cs
- Reference.cs
- AttributeQuery.cs
- CompositeDuplexBindingElement.cs
- Vector3DValueSerializer.cs
- BindingWorker.cs
- SerializationFieldInfo.cs
- ellipse.cs
- TextMarkerSource.cs
- FunctionDetailsReader.cs
- IconConverter.cs
- ContentOperations.cs
- EncryptedData.cs
- COM2ExtendedBrowsingHandler.cs
- CompositionTarget.cs
- RenderData.cs
- InheritanceContextHelper.cs
- StrongTypingException.cs
- SamlAuthenticationClaimResource.cs
- RegexCompilationInfo.cs
- ButtonBaseAdapter.cs
- SiteMapNodeCollection.cs
- LocalFileSettingsProvider.cs
- Mouse.cs
- SetMemberBinder.cs
- FieldAccessException.cs