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
- DataKeyArray.cs
- DesignerValidationSummaryAdapter.cs
- HtmlInputImage.cs
- ScriptDescriptor.cs
- ToolZone.cs
- FutureFactory.cs
- ObjectListCommandsPage.cs
- XmlnsPrefixAttribute.cs
- DbCommandTree.cs
- ConfigurationUtility.cs
- StreamAsIStream.cs
- XmlCharCheckingWriter.cs
- Vector3D.cs
- GPPOINTF.cs
- GridItem.cs
- Button.cs
- PeerNodeTraceRecord.cs
- ProfilePropertyNameValidator.cs
- ISCIIEncoding.cs
- Ipv6Element.cs
- MaskedTextProvider.cs
- PageCache.cs
- GACMembershipCondition.cs
- QilBinary.cs
- EventProviderWriter.cs
- ItemCollection.cs
- DLinqTableProvider.cs
- WebPartDescription.cs
- AssemblyAttributesGoHere.cs
- DetailsViewRow.cs
- ListSourceHelper.cs
- InkCanvasInnerCanvas.cs
- PrintDialogException.cs
- DataReceivedEventArgs.cs
- DispatcherExceptionFilterEventArgs.cs
- CollectionBuilder.cs
- AdornerHitTestResult.cs
- ByeOperationAsyncResult.cs
- DataGridViewRowHeaderCell.cs
- SizeLimitedCache.cs
- XmlDocumentFragment.cs
- ConnectionsZone.cs
- PointValueSerializer.cs
- TypeSystemProvider.cs
- ActivityCollectionMarkupSerializer.cs
- RemoteWebConfigurationHostServer.cs
- HwndSubclass.cs
- OdbcConnectionFactory.cs
- TraceHandlerErrorFormatter.cs
- SizeIndependentAnimationStorage.cs
- _SpnDictionary.cs
- UrlMappingsSection.cs
- QueryAccessibilityHelpEvent.cs
- IsolationInterop.cs
- HandledMouseEvent.cs
- AssemblyAttributes.cs
- ResXResourceWriter.cs
- SemanticTag.cs
- StringAttributeCollection.cs
- PolyLineSegment.cs
- StyleXamlParser.cs
- initElementDictionary.cs
- CodeGroup.cs
- ArraySortHelper.cs
- TableProviderWrapper.cs
- ReflectionTypeLoadException.cs
- CheckBoxBaseAdapter.cs
- SelectingProviderEventArgs.cs
- DataGridAutoFormatDialog.cs
- GroupQuery.cs
- HttpCookiesSection.cs
- followingsibling.cs
- ConfigurationPropertyAttribute.cs
- XmlElementAttributes.cs
- AnnotationService.cs
- MessageHeaderInfoTraceRecord.cs
- unitconverter.cs
- Array.cs
- MergeFailedEvent.cs
- ConfigurationSchemaErrors.cs
- RenameRuleObjectDialog.cs
- AuthenticationSection.cs
- NetPipeSection.cs
- EmptyTextWriter.cs
- Literal.cs
- StandardCommandToolStripMenuItem.cs
- KeyedHashAlgorithm.cs
- WindowsAuthenticationEventArgs.cs
- TableCellAutomationPeer.cs
- OleDbError.cs
- StringFreezingAttribute.cs
- CompensateDesigner.cs
- DebugInfoExpression.cs
- XamlBuildProvider.cs
- TreeNodeBindingCollection.cs
- ClientProxyGenerator.cs
- CustomErrorCollection.cs
- MobileListItem.cs
- _AutoWebProxyScriptHelper.cs
- UIElementIsland.cs