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
- Selection.cs
- HttpStreamMessageEncoderFactory.cs
- NavigateEvent.cs
- DataTransferEventArgs.cs
- QilXmlReader.cs
- SqlExpander.cs
- SimpleColumnProvider.cs
- CustomAttributeBuilder.cs
- Trace.cs
- ResolveNameEventArgs.cs
- FontStretchConverter.cs
- DataBindingList.cs
- ReadWriteObjectLock.cs
- FocusTracker.cs
- SoapExtensionTypeElementCollection.cs
- DoubleKeyFrameCollection.cs
- TranslateTransform3D.cs
- ColumnClickEvent.cs
- CapabilitiesAssignment.cs
- XmlAnyElementAttributes.cs
- DesignerActionPropertyItem.cs
- SemanticAnalyzer.cs
- CounterSample.cs
- TableLayoutPanelResizeGlyph.cs
- MachineKeyConverter.cs
- ToolStripDropDownMenu.cs
- FormViewInsertEventArgs.cs
- ThicknessConverter.cs
- TransformedBitmap.cs
- BmpBitmapDecoder.cs
- TextEmbeddedObject.cs
- TransformationRules.cs
- CapabilitiesPattern.cs
- FontUnitConverter.cs
- FloaterBaseParaClient.cs
- Material.cs
- ZoneLinkButton.cs
- ClientApiGenerator.cs
- Point.cs
- TypeSystem.cs
- Documentation.cs
- securitymgrsite.cs
- IPCCacheManager.cs
- Light.cs
- ChangeInterceptorAttribute.cs
- ACE.cs
- Screen.cs
- TrackingMemoryStreamFactory.cs
- OneWayChannelListener.cs
- TypedLocationWrapper.cs
- SiteMapDataSourceView.cs
- UnsignedPublishLicense.cs
- PropertyHelper.cs
- OutOfProcStateClientManager.cs
- BaseTreeIterator.cs
- CultureInfo.cs
- MultilineStringConverter.cs
- ZipIOFileItemStream.cs
- RowVisual.cs
- XmlDownloadManager.cs
- NetMsmqSecurityElement.cs
- ExtensibleClassFactory.cs
- MissingSatelliteAssemblyException.cs
- DesignerForm.cs
- KeyboardNavigation.cs
- Inline.cs
- SqlDataAdapter.cs
- CheckStoreFileValidityRequest.cs
- Binding.cs
- TypeDescriptor.cs
- IntegerFacetDescriptionElement.cs
- Maps.cs
- DataTableReader.cs
- FileAuthorizationModule.cs
- DataServiceRequestOfT.cs
- DataGridPagingPage.cs
- Marshal.cs
- OleAutBinder.cs
- shaperfactoryquerycachekey.cs
- TableLayoutSettingsTypeConverter.cs
- ColumnCollection.cs
- UnsafeNativeMethodsTablet.cs
- fixedPageContentExtractor.cs
- ContextMenuStrip.cs
- BitmapMetadataBlob.cs
- IisTraceListener.cs
- SafeLocalAllocation.cs
- OleDbParameterCollection.cs
- SizeFConverter.cs
- ParserHooks.cs
- DataControlPagerLinkButton.cs
- VariableAction.cs
- FloatUtil.cs
- WebPartActionVerb.cs
- NullableIntMinMaxAggregationOperator.cs
- PersistChildrenAttribute.cs
- SchemaNamespaceManager.cs
- AuthenticationModuleElementCollection.cs
- Code.cs
- LinearGradientBrush.cs