Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// The new listener. /// ///// 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; } } } } // 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
- ByeOperationAsyncResult.cs
- ObjectIDGenerator.cs
- DBConnection.cs
- X509SubjectKeyIdentifierClause.cs
- SchemaImporter.cs
- RectAnimationUsingKeyFrames.cs
- XmlEventCache.cs
- PostBackOptions.cs
- SymLanguageType.cs
- COM2Properties.cs
- RSAProtectedConfigurationProvider.cs
- SizeConverter.cs
- TrackingConditionCollection.cs
- StringResourceManager.cs
- Inline.cs
- ItemsControl.cs
- IERequestCache.cs
- UserPreferenceChangingEventArgs.cs
- FixedDocument.cs
- SqlPersonalizationProvider.cs
- LinearKeyFrames.cs
- ListBoxAutomationPeer.cs
- ComplusTypeValidator.cs
- DataServiceHost.cs
- BitmapEffectOutputConnector.cs
- BaseTemplateParser.cs
- SQLDouble.cs
- IPEndPoint.cs
- Rfc2898DeriveBytes.cs
- RawStylusInputReport.cs
- ProcessModelInfo.cs
- SByteConverter.cs
- CursorInteropHelper.cs
- RelationshipFixer.cs
- ContainerParagraph.cs
- Odbc32.cs
- ToolStripDropTargetManager.cs
- DirectoryLocalQuery.cs
- SettingsSavedEventArgs.cs
- ControlEvent.cs
- InternalConfirm.cs
- ParseChildrenAsPropertiesAttribute.cs
- FileEnumerator.cs
- ToolStripDropDownItem.cs
- XAMLParseException.cs
- COM2EnumConverter.cs
- ValidatedControlConverter.cs
- PathFigureCollection.cs
- XmlSchemaSimpleTypeRestriction.cs
- DataGridViewLinkCell.cs
- MeasureItemEvent.cs
- CommonGetThemePartSize.cs
- XPathSingletonIterator.cs
- MouseDevice.cs
- cache.cs
- DataStreams.cs
- WebDisplayNameAttribute.cs
- Matrix3D.cs
- XmlCompatibilityReader.cs
- HttpApplication.cs
- Rijndael.cs
- StandardRuntimeEnumValidatorAttribute.cs
- CodeChecksumPragma.cs
- WCFBuildProvider.cs
- XmlSchemaParticle.cs
- CodeIdentifiers.cs
- WindowsEditBoxRange.cs
- LinkConverter.cs
- PerformanceCounterPermissionEntry.cs
- GeometryModel3D.cs
- WebServiceErrorEvent.cs
- TableRowGroupCollection.cs
- TabPanel.cs
- CounterSetInstance.cs
- DirectionalLight.cs
- FontStyle.cs
- DefaultTraceListener.cs
- RowSpanVector.cs
- HtmlShim.cs
- HttpModuleActionCollection.cs
- PasswordBox.cs
- BadImageFormatException.cs
- Calendar.cs
- MultiSelectRootGridEntry.cs
- WriterOutput.cs
- DataGridViewToolTip.cs
- IdleTimeoutMonitor.cs
- ItemsControlAutomationPeer.cs
- TypefaceMetricsCache.cs
- BufferedGraphicsContext.cs
- DataGridClipboardHelper.cs
- __Filters.cs
- EntityViewGenerator.cs
- SiteIdentityPermission.cs
- OuterGlowBitmapEffect.cs
- HeaderedContentControl.cs
- IdentifierCreationService.cs
- ListViewEditEventArgs.cs
- FormatConvertedBitmap.cs
- DecoderBestFitFallback.cs