Code:
/ DotNET / DotNET / 8.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
- TrackingExtract.cs
- httpstaticobjectscollection.cs
- EmptyTextWriter.cs
- MetadataExchangeBindings.cs
- DocumentAutomationPeer.cs
- BitmapEffectDrawingContextWalker.cs
- DataServiceClientException.cs
- ControlsConfig.cs
- RuntimeResourceSet.cs
- QilReference.cs
- grammarelement.cs
- AuthenticationServiceManager.cs
- InstanceDataCollectionCollection.cs
- FieldBuilder.cs
- ScrollProviderWrapper.cs
- SvcMapFile.cs
- SimpleType.cs
- Pair.cs
- MsmqIntegrationBinding.cs
- FormViewPageEventArgs.cs
- EventTrigger.cs
- Path.cs
- ContextStaticAttribute.cs
- SystemIPInterfaceStatistics.cs
- SiblingIterators.cs
- PropertyMap.cs
- ModifiableIteratorCollection.cs
- TransformerConfigurationWizardBase.cs
- BulletedListEventArgs.cs
- HtmlForm.cs
- DialogResultConverter.cs
- DocumentNUp.cs
- SqlVisitor.cs
- SerialPinChanges.cs
- TypedDataSetSchemaImporterExtension.cs
- Queue.cs
- TerminatorSinks.cs
- SliderAutomationPeer.cs
- Executor.cs
- UnhandledExceptionEventArgs.cs
- IOException.cs
- QuaternionRotation3D.cs
- EqualityComparer.cs
- HeaderedItemsControl.cs
- AppManager.cs
- PerformanceCountersElement.cs
- SimpleWorkerRequest.cs
- SmtpMail.cs
- DtdParser.cs
- DataRowChangeEvent.cs
- CountAggregationOperator.cs
- WorkflowInvoker.cs
- ReverseComparer.cs
- ZoneLinkButton.cs
- AspNetHostingPermission.cs
- DocumentApplicationJournalEntry.cs
- Decoder.cs
- HttpCacheVaryByContentEncodings.cs
- DataServiceKeyAttribute.cs
- BufferBuilder.cs
- storagemappingitemcollection.viewdictionary.cs
- RelatedPropertyManager.cs
- SubclassTypeValidatorAttribute.cs
- ItemContainerGenerator.cs
- MarkerProperties.cs
- ManagementNamedValueCollection.cs
- XmlSchemaSimpleContentExtension.cs
- HashCodeCombiner.cs
- XmlEntityReference.cs
- GridEntry.cs
- PerfCounterSection.cs
- Style.cs
- ComponentRenameEvent.cs
- SqlNotificationEventArgs.cs
- ProcessInfo.cs
- ChangeDirector.cs
- DefaultMemberAttribute.cs
- Buffer.cs
- BinaryObjectInfo.cs
- MulticastNotSupportedException.cs
- ActivityExecutionContextCollection.cs
- DesignerValidationSummaryAdapter.cs
- InvalidDataException.cs
- WebSysDisplayNameAttribute.cs
- ComboBox.cs
- XmlHierarchicalDataSourceView.cs
- TextControlDesigner.cs
- GraphicsPath.cs
- SortKey.cs
- CatalogPartDesigner.cs
- EditingCommands.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- BitStack.cs
- EventToken.cs
- ImageKeyConverter.cs
- ConsoleEntryPoint.cs
- DbParameterHelper.cs
- DashStyle.cs
- SpecularMaterial.cs
- InputElement.cs