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
- Visual3D.cs
- ColorConvertedBitmapExtension.cs
- SqlDataSourceView.cs
- GridItemPatternIdentifiers.cs
- MimeXmlReflector.cs
- ListItemCollection.cs
- WebPartMinimizeVerb.cs
- BamlRecords.cs
- SqlVisitor.cs
- Resources.Designer.cs
- Context.cs
- XmlWriter.cs
- propertytag.cs
- ConstructorNeedsTagAttribute.cs
- CompiledELinqQueryState.cs
- PagesChangedEventArgs.cs
- DBBindings.cs
- DecoderFallbackWithFailureFlag.cs
- AccessDataSource.cs
- MetadataResolver.cs
- FormViewInsertEventArgs.cs
- XmlEnumAttribute.cs
- WebBrowsableAttribute.cs
- FrameworkElement.cs
- WebPartCloseVerb.cs
- contentDescriptor.cs
- KeyGestureConverter.cs
- HotSpot.cs
- ReliableInputConnection.cs
- RbTree.cs
- Exception.cs
- DispatcherSynchronizationContext.cs
- ArraySet.cs
- SafeCertificateContext.cs
- WebPageTraceListener.cs
- RegexBoyerMoore.cs
- WithStatement.cs
- KeyboardDevice.cs
- Buffer.cs
- NonSerializedAttribute.cs
- TimeZone.cs
- DataServiceResponse.cs
- Lease.cs
- XmlSchemaCollection.cs
- SecurityContext.cs
- DataGridViewColumnCollectionEditor.cs
- GridViewAutomationPeer.cs
- FilterElement.cs
- MatrixCamera.cs
- SessionStateModule.cs
- DataGridCell.cs
- SystemUdpStatistics.cs
- TextAction.cs
- XmlCDATASection.cs
- TreeViewItemAutomationPeer.cs
- ArraySegment.cs
- Models.cs
- AliasedExpr.cs
- ChildChangedEventArgs.cs
- Vertex.cs
- _SslStream.cs
- OraclePermission.cs
- SourceItem.cs
- WmlListAdapter.cs
- DynamicRendererThreadManager.cs
- EventLogPermissionEntry.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Positioning.cs
- mactripleDES.cs
- PageFunction.cs
- altserialization.cs
- SessionIDManager.cs
- TextEndOfSegment.cs
- SmiTypedGetterSetter.cs
- SQlBooleanStorage.cs
- EnumerableValidator.cs
- XmlUtil.cs
- TargetControlTypeCache.cs
- DataMemberListEditor.cs
- ForeignKeyConstraint.cs
- webbrowsersite.cs
- AuthenticationService.cs
- UrlRoutingModule.cs
- NegationPusher.cs
- IndentedWriter.cs
- Math.cs
- BufferedStream.cs
- BamlLocalizableResourceKey.cs
- EdgeModeValidation.cs
- MultilineStringConverter.cs
- HttpCookiesSection.cs
- X509SubjectKeyIdentifierClause.cs
- LiteralDesigner.cs
- AnnouncementClient.cs
- Int32RectValueSerializer.cs
- DrawingCollection.cs
- SizeValueSerializer.cs
- SessionStateItemCollection.cs
- BitmapEffectGeneralTransform.cs
- DataGridDefaultColumnWidthTypeConverter.cs