Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeMethodInvokeExpression.cs / 1 / CodeMethodInvokeExpression.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;
///
///
/// Represents an
/// expression to invoke a method, to be called on a given target.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeMethodInvokeExpression : CodeExpression {
private CodeMethodReferenceExpression method;
private CodeExpressionCollection parameters = new CodeExpressionCollection();
///
///
/// Initializes a new instance of .
///
///
public CodeMethodInvokeExpression() {
}
///
///
/// Initializes a new instance of using the specified target object, method name
/// and parameters.
///
///
public CodeMethodInvokeExpression(CodeMethodReferenceExpression method, params CodeExpression[] parameters) {
this.method = method;
Parameters.AddRange(parameters);
}
///
/// [To be supplied.]
///
public CodeMethodInvokeExpression(CodeExpression targetObject, string methodName, params CodeExpression[] parameters) {
this.method = new CodeMethodReferenceExpression(targetObject, methodName);
Parameters.AddRange(parameters);
}
///
///
/// Gets or sets the name of the method to invoke.
///
///
public CodeMethodReferenceExpression Method {
get {
if (method == null) {
method = new CodeMethodReferenceExpression();
}
return method;
}
set {
method = value;
}
}
///
///
/// Gets or sets
/// the parameters to invoke the method with.
///
///
public CodeExpressionCollection Parameters {
get {
return parameters;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SimpleType.cs
- Activity.cs
- BitmapEffectGroup.cs
- RotateTransform3D.cs
- BooleanStorage.cs
- ProviderSettingsCollection.cs
- ActivityPreviewDesigner.cs
- RequestResizeEvent.cs
- TreeNodeStyleCollection.cs
- NativeCompoundFileAPIs.cs
- JobDuplex.cs
- DefaultTextStore.cs
- ApplicationHost.cs
- HtmlTextArea.cs
- DetailsViewDeleteEventArgs.cs
- SmtpReplyReaderFactory.cs
- MonitoringDescriptionAttribute.cs
- DataSourceCacheDurationConverter.cs
- IpcManager.cs
- PanelDesigner.cs
- JsonFormatGeneratorStatics.cs
- Annotation.cs
- MenuItemStyleCollection.cs
- SaveWorkflowCommand.cs
- PictureBox.cs
- AutomationFocusChangedEventArgs.cs
- XmlSchemaGroupRef.cs
- MemberBinding.cs
- unsafenativemethodsother.cs
- TreeViewItemAutomationPeer.cs
- BookmarkScope.cs
- PixelFormat.cs
- BitmapEffectDrawing.cs
- AppSettingsExpressionBuilder.cs
- LongTypeConverter.cs
- ContentPlaceHolder.cs
- WebPartTracker.cs
- Popup.cs
- DictionaryTraceRecord.cs
- PreloadedPackages.cs
- UpdateRecord.cs
- AddingNewEventArgs.cs
- __Error.cs
- ConnectionPoolManager.cs
- XsdCachingReader.cs
- OdbcInfoMessageEvent.cs
- ColorConvertedBitmap.cs
- PenThreadWorker.cs
- BitmapDecoder.cs
- SmtpAuthenticationManager.cs
- WasEndpointConfigContainer.cs
- HttpListenerPrefixCollection.cs
- XmlSchemaExternal.cs
- HistoryEventArgs.cs
- OdbcHandle.cs
- TypedTableGenerator.cs
- LicenseContext.cs
- CacheSection.cs
- ThreadStaticAttribute.cs
- Cell.cs
- DetailsViewPageEventArgs.cs
- GroupBoxRenderer.cs
- UnsafeNativeMethods.cs
- Imaging.cs
- SQLDateTimeStorage.cs
- AttributeAction.cs
- loginstatus.cs
- KeyValueSerializer.cs
- ToolBar.cs
- PresentationAppDomainManager.cs
- TextRangeEditTables.cs
- ThicknessKeyFrameCollection.cs
- MgmtConfigurationRecord.cs
- GroupLabel.cs
- DeferrableContentConverter.cs
- CompModSwitches.cs
- XPathQilFactory.cs
- Group.cs
- CodeFieldReferenceExpression.cs
- RelativeSource.cs
- IPAddress.cs
- IPAddressCollection.cs
- ListViewGroupConverter.cs
- EmbeddedObject.cs
- XmlHierarchicalDataSourceView.cs
- TemplatedEditableDesignerRegion.cs
- IisTraceWebEventProvider.cs
- UInt32Storage.cs
- SecurityVerifiedMessage.cs
- PersonalizationEntry.cs
- ParallelQuery.cs
- NamedPipeConnectionPool.cs
- DataGridViewToolTip.cs
- SizeAnimationBase.cs
- IisTraceListener.cs
- PropertyValueUIItem.cs
- Bits.cs
- OdbcReferenceCollection.cs
- ReflectionTypeLoadException.cs
- Viewport3DAutomationPeer.cs