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
- MethodRental.cs
- KeyNotFoundException.cs
- ListBox.cs
- XamlFigureLengthSerializer.cs
- PropertyItem.cs
- ObjectResult.cs
- LinqDataSourceValidationException.cs
- NavigationProgressEventArgs.cs
- PermissionAttributes.cs
- MD5CryptoServiceProvider.cs
- CompilerScopeManager.cs
- DebuggerService.cs
- Typography.cs
- CriticalFinalizerObject.cs
- AssemblyResolver.cs
- LocalBuilder.cs
- ItemsControl.cs
- AnonymousIdentificationModule.cs
- TreeNodeCollection.cs
- TransformerInfoCollection.cs
- CheckableControlBaseAdapter.cs
- ImageField.cs
- ListBindableAttribute.cs
- FormsIdentity.cs
- GB18030Encoding.cs
- UnsafeNativeMethodsTablet.cs
- DataGridViewComboBoxCell.cs
- SqlTopReducer.cs
- TypefaceCollection.cs
- DebugView.cs
- FtpWebRequest.cs
- autovalidator.cs
- WebPartConnectionsCloseVerb.cs
- GeneralTransform3DGroup.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- ContentPosition.cs
- CompiledRegexRunnerFactory.cs
- MetadataCache.cs
- InkPresenter.cs
- StorageConditionPropertyMapping.cs
- FillRuleValidation.cs
- SignatureResourcePool.cs
- ControlPersister.cs
- OptimizerPatterns.cs
- RuntimeWrappedException.cs
- ServicePrincipalNameElement.cs
- UIInitializationException.cs
- CapacityStreamGeometryContext.cs
- WebPartManager.cs
- GeneralEndpointIdentity.cs
- RangeValueProviderWrapper.cs
- SizeFConverter.cs
- DefinitionUpdate.cs
- UserValidatedEventArgs.cs
- FilteredAttributeCollection.cs
- HostProtectionPermission.cs
- SQLInt16Storage.cs
- GeneralTransform.cs
- AmbientValueAttribute.cs
- EndpointConfigContainer.cs
- DetailsViewRow.cs
- ButtonChrome.cs
- Base64Encoder.cs
- CreateUserErrorEventArgs.cs
- DbCommandDefinition.cs
- SizeLimitedCache.cs
- BooleanFacetDescriptionElement.cs
- SharedTcpTransportManager.cs
- WebPartConnectionsDisconnectVerb.cs
- _SpnDictionary.cs
- MetadataPropertyAttribute.cs
- CroppedBitmap.cs
- MetafileEditor.cs
- DesignerPerfEventProvider.cs
- HtmlShim.cs
- QueryTaskGroupState.cs
- SqlConnectionStringBuilder.cs
- DocumentOrderQuery.cs
- CodeExpressionStatement.cs
- SelectionWordBreaker.cs
- LocatorGroup.cs
- FontFamilyIdentifier.cs
- ReferencedAssembly.cs
- ScriptRef.cs
- ExecutionEngineException.cs
- XPathMessageFilter.cs
- XmlSchemaCollection.cs
- ClassicBorderDecorator.cs
- SecuritySessionClientSettings.cs
- OptimizedTemplateContent.cs
- ReadOnlyMetadataCollection.cs
- MemberHolder.cs
- Tile.cs
- Wildcard.cs
- SerializationInfo.cs
- WebPartDisplayMode.cs
- ListBoxAutomationPeer.cs
- MaskDesignerDialog.cs
- controlskin.cs
- StatusBarItemAutomationPeer.cs