Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeMethodInvokeExpression.cs / 1305376 / 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;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CopyNodeSetAction.cs
- XmlReflectionImporter.cs
- CurrentChangedEventManager.cs
- ExceptionHandler.cs
- SmtpAuthenticationManager.cs
- ScriptBehaviorDescriptor.cs
- CompressStream.cs
- TextDecorationCollectionConverter.cs
- X509Extension.cs
- Stroke.cs
- ClientSideProviderDescription.cs
- PerformanceCounterLib.cs
- XmlSchemaGroupRef.cs
- Decimal.cs
- ModelPropertyCollectionImpl.cs
- TypedAsyncResult.cs
- RegexParser.cs
- HotSpotCollection.cs
- DynamicValidator.cs
- OpCopier.cs
- QuaternionRotation3D.cs
- UnicodeEncoding.cs
- CustomErrorsSectionWrapper.cs
- PublisherIdentityPermission.cs
- ListViewItem.cs
- DataGridViewSelectedRowCollection.cs
- PinProtectionHelper.cs
- ClientScriptManagerWrapper.cs
- Type.cs
- ImageFormatConverter.cs
- sqlinternaltransaction.cs
- BitmapEffectDrawing.cs
- DesignerTransactionCloseEvent.cs
- EllipseGeometry.cs
- ImageListStreamer.cs
- FontFamilyIdentifier.cs
- MailMessage.cs
- TextSpan.cs
- KeyValuePair.cs
- HatchBrush.cs
- OdbcConnectionHandle.cs
- EventLog.cs
- TextCompositionEventArgs.cs
- WinEventQueueItem.cs
- ServiceBuildProvider.cs
- ResourceProviderFactory.cs
- QilVisitor.cs
- TemplateLookupAction.cs
- EntityDataSourceChangingEventArgs.cs
- Pool.cs
- UserThread.cs
- ADRole.cs
- XmlSchemaSimpleType.cs
- Nullable.cs
- HttpFileCollection.cs
- EventDescriptor.cs
- UnsafeNativeMethods.cs
- Bits.cs
- WeakReference.cs
- Rotation3DKeyFrameCollection.cs
- ExpressionNormalizer.cs
- StandardBindingElement.cs
- ProfileSection.cs
- SimpleBitVector32.cs
- FixedSOMTableCell.cs
- VirtualPathData.cs
- IApplicationTrustManager.cs
- ToolStripHighContrastRenderer.cs
- ToolStripContainer.cs
- PolygonHotSpot.cs
- DataPagerFieldCommandEventArgs.cs
- ConfigXmlAttribute.cs
- followingquery.cs
- Journal.cs
- FragmentNavigationEventArgs.cs
- ClosableStream.cs
- SystemIPInterfaceStatistics.cs
- HtmlElement.cs
- TextBreakpoint.cs
- Slider.cs
- Html32TextWriter.cs
- StringComparer.cs
- ListChangedEventArgs.cs
- ProtocolsSection.cs
- FullTextBreakpoint.cs
- LocatorManager.cs
- CompilationPass2TaskInternal.cs
- ExpanderAutomationPeer.cs
- UICuesEvent.cs
- PolyLineSegment.cs
- SemanticBasicElement.cs
- SqlGenericUtil.cs
- MobileCategoryAttribute.cs
- FontNamesConverter.cs
- ToolStripOverflowButton.cs
- SignatureToken.cs
- DockEditor.cs
- SeverityFilter.cs
- Button.cs
- InternalConfigConfigurationFactory.cs