Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeAttachEventStatement.cs / 1305376 / CodeAttachEventStatement.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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. /// ///// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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
- UserPersonalizationStateInfo.cs
- SchemaEntity.cs
- XmlTextEncoder.cs
- ResourceReferenceExpression.cs
- UTF32Encoding.cs
- WebPartActionVerb.cs
- AvTrace.cs
- JoinSymbol.cs
- InputLanguageCollection.cs
- BuildManagerHost.cs
- ComUdtElementCollection.cs
- GradientBrush.cs
- DataGridTablesFactory.cs
- DBCommand.cs
- MinMaxParagraphWidth.cs
- SqlCrossApplyToCrossJoin.cs
- Stackframe.cs
- ImageListUtils.cs
- KeyToListMap.cs
- CacheMode.cs
- ChannelSinkStacks.cs
- KeyNotFoundException.cs
- DataGridViewBand.cs
- ImageIndexConverter.cs
- RepeatInfo.cs
- DbSourceParameterCollection.cs
- BamlRecordHelper.cs
- Variant.cs
- MultiSelectRootGridEntry.cs
- DashStyle.cs
- ObjectDataSource.cs
- UIElementPropertyUndoUnit.cs
- HtmlInputCheckBox.cs
- Interlocked.cs
- ValuePatternIdentifiers.cs
- SystemIcmpV6Statistics.cs
- XmlValueConverter.cs
- XmlSchemaSequence.cs
- ManagementPath.cs
- ExpandCollapseProviderWrapper.cs
- XmlSchemaElement.cs
- CodeSubDirectoriesCollection.cs
- TimeSpanFormat.cs
- ResourceKey.cs
- EmptyElement.cs
- InvalidOperationException.cs
- XmlSchemaSimpleContent.cs
- ConfigurationSettings.cs
- TemplateLookupAction.cs
- FormsAuthenticationConfiguration.cs
- NetworkInterface.cs
- BuildResult.cs
- WebPartDescription.cs
- ZoneButton.cs
- TextTreeTextNode.cs
- CharUnicodeInfo.cs
- DocumentStatusResources.cs
- Setter.cs
- DivideByZeroException.cs
- DataServicePagingProviderWrapper.cs
- DbProviderServices.cs
- RSACryptoServiceProvider.cs
- GeometryModel3D.cs
- TraceSection.cs
- DataTableMappingCollection.cs
- InkSerializer.cs
- ListViewCommandEventArgs.cs
- Stroke.cs
- MultipleFilterMatchesException.cs
- ContextMenuAutomationPeer.cs
- EmptyElement.cs
- StringBlob.cs
- MarkupCompilePass1.cs
- TouchesOverProperty.cs
- ReservationNotFoundException.cs
- ClientEventManager.cs
- PassportAuthenticationEventArgs.cs
- WebPartConnectVerb.cs
- SubtreeProcessor.cs
- DivideByZeroException.cs
- BitmapMetadataBlob.cs
- NativeMethods.cs
- UnsafeNativeMethods.cs
- TrailingSpaceComparer.cs
- ListDictionaryInternal.cs
- AdministrationHelpers.cs
- ObjectTag.cs
- BrowserCapabilitiesFactoryBase.cs
- SiteMembershipCondition.cs
- PipelineModuleStepContainer.cs
- AdornerDecorator.cs
- EdmItemCollection.cs
- WorkflowMarkupElementEventArgs.cs
- SendSecurityHeaderElement.cs
- RootNamespaceAttribute.cs
- ClientRuntimeConfig.cs
- CodeDOMUtility.cs
- EpmContentSerializer.cs
- MemberRestriction.cs
- Double.cs