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
- Int16Animation.cs
- FieldBuilder.cs
- QilTernary.cs
- PageSetupDialog.cs
- TextBoxBase.cs
- InfoCardRequestException.cs
- EntitySqlQueryCacheKey.cs
- MetadataCache.cs
- Adorner.cs
- NotConverter.cs
- Metadata.cs
- CodeArrayCreateExpression.cs
- TrackingProfile.cs
- HttpHeaderCollection.cs
- ValidationPropertyAttribute.cs
- RoutingConfiguration.cs
- TreeBuilderBamlTranslator.cs
- PaintValueEventArgs.cs
- BlurEffect.cs
- FixedDocumentPaginator.cs
- IListConverters.cs
- SHA512.cs
- WebPartTracker.cs
- CatalogZoneBase.cs
- NativeMethods.cs
- WebPartsSection.cs
- CacheOutputQuery.cs
- MsmqHostedTransportManager.cs
- DataConnectionHelper.cs
- SerializationAttributes.cs
- GeneralTransform3DTo2DTo3D.cs
- MSAAWinEventWrap.cs
- XmlWriterTraceListener.cs
- PointValueSerializer.cs
- Point3DAnimationUsingKeyFrames.cs
- ToolStripGrip.cs
- ProtocolsConfigurationEntry.cs
- Pen.cs
- Message.cs
- RowUpdatedEventArgs.cs
- HMACSHA1.cs
- SignatureConfirmations.cs
- FacetDescription.cs
- PersistStreamTypeWrapper.cs
- DataGridTablesFactory.cs
- DataControlFieldCell.cs
- _SslState.cs
- DesignerSerializationVisibilityAttribute.cs
- GridViewEditEventArgs.cs
- TypefaceMap.cs
- ping.cs
- WinHttpWebProxyFinder.cs
- ZipIOLocalFileBlock.cs
- SqlTypeConverter.cs
- CheckBoxBaseAdapter.cs
- RowsCopiedEventArgs.cs
- GenericTypeParameterConverter.cs
- TextMarkerSource.cs
- FontCollection.cs
- HtmlFormAdapter.cs
- SkipStoryboardToFill.cs
- AutomationIdentifier.cs
- nulltextnavigator.cs
- RtfToXamlLexer.cs
- ButtonField.cs
- RuleRefElement.cs
- ImageIndexConverter.cs
- SmtpDigestAuthenticationModule.cs
- Tokenizer.cs
- ClientSideProviderDescription.cs
- UICuesEvent.cs
- MessageAction.cs
- RemoteCryptoSignHashRequest.cs
- ExpressionBinding.cs
- ToolStripDesignerUtils.cs
- PrtTicket_Base.cs
- WebServiceHandlerFactory.cs
- PersonalizationDictionary.cs
- Control.cs
- AccessorTable.cs
- __Error.cs
- SQLInt16Storage.cs
- X509Utils.cs
- MenuItem.cs
- RemoteWebConfigurationHostServer.cs
- SafePEFileHandle.cs
- CollectionViewGroup.cs
- BamlTreeMap.cs
- ResourcePool.cs
- BufferedGraphicsContext.cs
- Tile.cs
- OleDbStruct.cs
- SingleBodyParameterMessageFormatter.cs
- sqlinternaltransaction.cs
- EntitySetDataBindingList.cs
- DocumentXmlWriter.cs
- StreamAsIStream.cs
- BindUriHelper.cs
- BufferedWebEventProvider.cs
- DeclarativeCatalogPart.cs