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
- CapabilitiesRule.cs
- LinqExpressionNormalizer.cs
- ByeOperation11AsyncResult.cs
- StyleCollection.cs
- TextEvent.cs
- DispatchWrapper.cs
- DeferredTextReference.cs
- WorkflowViewService.cs
- AdPostCacheSubstitution.cs
- ClrPerspective.cs
- WindowsPrincipal.cs
- DataListItemEventArgs.cs
- DataAccessException.cs
- JsonEncodingStreamWrapper.cs
- XmlIgnoreAttribute.cs
- DBSchemaTable.cs
- SmtpLoginAuthenticationModule.cs
- InternalConfigEventArgs.cs
- ExpressionBindings.cs
- StructuredType.cs
- EmbeddedMailObjectsCollection.cs
- RuleConditionDialog.cs
- StringAnimationUsingKeyFrames.cs
- SafeTimerHandle.cs
- ChangeNode.cs
- ColumnTypeConverter.cs
- UndoManager.cs
- ToolTip.cs
- Crc32.cs
- Debug.cs
- SqlDataSourceSelectingEventArgs.cs
- HtmlUtf8RawTextWriter.cs
- RSAOAEPKeyExchangeFormatter.cs
- SafeHandles.cs
- EncoderParameters.cs
- Substitution.cs
- EntitySqlException.cs
- BaseCAMarshaler.cs
- DiscoveryClientRequestChannel.cs
- MetadataArtifactLoaderCompositeResource.cs
- DocumentGridContextMenu.cs
- StopStoryboard.cs
- AssemblyBuilderData.cs
- PieceDirectory.cs
- CodeGeneratorAttribute.cs
- AuthenticationConfig.cs
- XmlSchemaElement.cs
- AdRotatorDesigner.cs
- StyleXamlParser.cs
- PersianCalendar.cs
- PeerResolverBindingElement.cs
- DataFormats.cs
- DataGridItemEventArgs.cs
- RangeValidator.cs
- RuntimeResourceSet.cs
- NavigateEvent.cs
- SurrogateEncoder.cs
- WebControlParameterProxy.cs
- ParallelTimeline.cs
- DataSourceConverter.cs
- RectangleConverter.cs
- SoapObjectWriter.cs
- ParameterToken.cs
- DataControlFieldCollection.cs
- InternalPolicyElement.cs
- SettingsContext.cs
- DragDropManager.cs
- TabPageDesigner.cs
- Symbol.cs
- RoleGroup.cs
- WebAdminConfigurationHelper.cs
- DropDownList.cs
- CalculatedColumn.cs
- TouchesOverProperty.cs
- _AutoWebProxyScriptWrapper.cs
- TargetFrameworkAttribute.cs
- StylusDownEventArgs.cs
- ElementHost.cs
- FontSource.cs
- MetadataItemEmitter.cs
- TailPinnedEventArgs.cs
- DesignerLoader.cs
- TrackingCondition.cs
- UnsafeNativeMethods.cs
- ForceCopyBuildProvider.cs
- Label.cs
- RoleManagerEventArgs.cs
- OlePropertyStructs.cs
- RtfControlWordInfo.cs
- CompilerWrapper.cs
- EventsTab.cs
- StorageComplexTypeMapping.cs
- BatchParser.cs
- DataGridViewDataConnection.cs
- SByteConverter.cs
- DataGridViewIntLinkedList.cs
- RuntimeConfigLKG.cs
- ItemDragEvent.cs
- FrameworkName.cs
- HashLookup.cs