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
- UpWmlMobileTextWriter.cs
- ControlAdapter.cs
- ObjectReferenceStack.cs
- ControlHelper.cs
- Geometry3D.cs
- ListSourceHelper.cs
- FixedSOMTableRow.cs
- GlobalProxySelection.cs
- FacetChecker.cs
- StrongNameIdentityPermission.cs
- MenuAdapter.cs
- NullableFloatSumAggregationOperator.cs
- Pkcs7Signer.cs
- ContentDesigner.cs
- DataObjectAttribute.cs
- WorkflowMarkupSerializationException.cs
- SiteIdentityPermission.cs
- XNodeSchemaApplier.cs
- ControlEvent.cs
- XmlSchema.cs
- UnconditionalPolicy.cs
- MimeParameter.cs
- XmlNamedNodeMap.cs
- EdgeProfileValidation.cs
- GestureRecognizer.cs
- ConnectionInterfaceCollection.cs
- RuleSettings.cs
- DateTimeUtil.cs
- DataGridViewRowCollection.cs
- IisTraceWebEventProvider.cs
- TreeNodeMouseHoverEvent.cs
- CopyOnWriteList.cs
- PageStatePersister.cs
- SelectedPathEditor.cs
- DesignerSelectionListAdapter.cs
- SigningCredentials.cs
- TableLayoutSettings.cs
- StringDictionary.cs
- EventTrigger.cs
- MapPathBasedVirtualPathProvider.cs
- SortExpressionBuilder.cs
- StrongNameIdentityPermission.cs
- OleDbCommand.cs
- ToolboxComponentsCreatedEventArgs.cs
- SafeFileMappingHandle.cs
- Byte.cs
- HTMLTagNameToTypeMapper.cs
- RubberbandSelector.cs
- RouteTable.cs
- ServiceOperationHelpers.cs
- OleDbStruct.cs
- PersonalizationAdministration.cs
- ToolStripGripRenderEventArgs.cs
- XmlWrappingWriter.cs
- TriggerActionCollection.cs
- TouchDevice.cs
- FloatAverageAggregationOperator.cs
- AccessControlEntry.cs
- WebControlsSection.cs
- GraphicsContext.cs
- WSFederationHttpBindingCollectionElement.cs
- TextRangeEditLists.cs
- PropertyConverter.cs
- MultiPageTextView.cs
- XmlSchemaGroup.cs
- DataPager.cs
- DelayedRegex.cs
- DisableDpiAwarenessAttribute.cs
- ProgressBar.cs
- StringKeyFrameCollection.cs
- BigInt.cs
- ButtonFieldBase.cs
- GradientStopCollection.cs
- PropertyGridView.cs
- PriorityQueue.cs
- UIElementHelper.cs
- ImplicitInputBrush.cs
- ChannelToken.cs
- BitmapCacheBrush.cs
- DesignParameter.cs
- TypeConverterValueSerializer.cs
- XPathParser.cs
- SaveFileDialogDesigner.cs
- AssemblySettingAttributes.cs
- SubqueryRules.cs
- SoundPlayerAction.cs
- DataGridViewRowStateChangedEventArgs.cs
- HttpChannelHelpers.cs
- RuntimeConfig.cs
- HtmlFormParameterWriter.cs
- OracleBinary.cs
- BinaryReader.cs
- HideDisabledControlAdapter.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Variable.cs
- BypassElementCollection.cs
- CultureInfoConverter.cs
- ColumnPropertiesGroup.cs
- XmlDataImplementation.cs
- MailWebEventProvider.cs