Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ColorTransform.cs
- ObjectKeyFrameCollection.cs
- TableCellsCollectionEditor.cs
- DesignOnlyAttribute.cs
- NativeMethods.cs
- MediaPlayerState.cs
- StringToken.cs
- JoinCqlBlock.cs
- WebPartConnectVerb.cs
- UnsafeNativeMethods.cs
- RelationshipFixer.cs
- MsmqQueue.cs
- IntegerValidatorAttribute.cs
- CodeDomDecompiler.cs
- CheckBox.cs
- FolderLevelBuildProviderCollection.cs
- ItemCheckEvent.cs
- MonthCalendarDesigner.cs
- DeclaredTypeValidator.cs
- BoundingRectTracker.cs
- WS2007HttpBindingElement.cs
- ProxyWebPart.cs
- Control.cs
- ContextBase.cs
- NativeMethods.cs
- HiddenFieldPageStatePersister.cs
- ListViewDeleteEventArgs.cs
- QilFactory.cs
- PointAnimationUsingKeyFrames.cs
- DomNameTable.cs
- ApplicationTrust.cs
- OverrideMode.cs
- ElementHostPropertyMap.cs
- ColumnHeader.cs
- ServicePointManager.cs
- DBSqlParserColumnCollection.cs
- AssemblyBuilder.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ToolStripDropTargetManager.cs
- SafeNativeMemoryHandle.cs
- ScaleTransform3D.cs
- invalidudtexception.cs
- Operator.cs
- FullTextBreakpoint.cs
- List.cs
- ProfileGroupSettings.cs
- PropertyToken.cs
- Block.cs
- IdentityValidationException.cs
- SystemResources.cs
- Int32CAMarshaler.cs
- GenericUriParser.cs
- IdentitySection.cs
- AsyncContentLoadedEventArgs.cs
- Point3DIndependentAnimationStorage.cs
- StandardBindingImporter.cs
- DataServiceException.cs
- SqlErrorCollection.cs
- DetailsView.cs
- SingletonChannelAcceptor.cs
- TransactionProxy.cs
- ReferentialConstraint.cs
- LocationSectionRecord.cs
- MasterPageBuildProvider.cs
- __Filters.cs
- Font.cs
- SqlDataSourceStatusEventArgs.cs
- Rect.cs
- DateTimeParse.cs
- HtmlInputSubmit.cs
- IApplicationTrustManager.cs
- EmptyEnumerable.cs
- ConnectionStringsExpressionBuilder.cs
- ListViewContainer.cs
- ApplicationDirectory.cs
- ToolStripDropDownButton.cs
- DeobfuscatingStream.cs
- ContentDisposition.cs
- StorageConditionPropertyMapping.cs
- UnsafeNativeMethods.cs
- AuthorizationSection.cs
- EndOfStreamException.cs
- DSACryptoServiceProvider.cs
- TextEditorCopyPaste.cs
- WebBrowserSiteBase.cs
- WmlTextViewAdapter.cs
- DataReceivedEventArgs.cs
- DataServiceResponse.cs
- ConfigXmlWhitespace.cs
- Nodes.cs
- SimpleHandlerBuildProvider.cs
- DataTemplateKey.cs
- XsdDateTime.cs
- MenuCommands.cs
- GregorianCalendar.cs
- XmlSchemaType.cs
- basemetadatamappingvisitor.cs
- TraceEventCache.cs
- NameObjectCollectionBase.cs
- ImageBrush.cs