Code:
/ 4.0 / 4.0 / 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.
//------------------------------------------------------------------------------
//
//
// [....]
// 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
- ToolStripDropDownClosingEventArgs.cs
- SafeReversePInvokeHandle.cs
- TablePatternIdentifiers.cs
- InvalidOperationException.cs
- ObjectResult.cs
- UIHelper.cs
- DBParameter.cs
- SortedDictionary.cs
- TextAdaptor.cs
- TextOnlyOutput.cs
- ConfigurationManagerHelperFactory.cs
- TextTreeUndo.cs
- SemanticKeyElement.cs
- RemoteWebConfigurationHost.cs
- DbgUtil.cs
- WebScriptClientGenerator.cs
- ProviderConnectionPointCollection.cs
- MimeMultiPart.cs
- QuaternionConverter.cs
- CodeStatement.cs
- SortDescription.cs
- WorkerRequest.cs
- SignatureHelper.cs
- BinaryUtilClasses.cs
- WebEvents.cs
- MultilineStringConverter.cs
- ServiceHostFactory.cs
- ServiceChannel.cs
- SQLInt32.cs
- ItemsControlAutomationPeer.cs
- GraphicsState.cs
- WeakEventTable.cs
- TableAdapterManagerNameHandler.cs
- XmlSchemaObjectCollection.cs
- BuilderPropertyEntry.cs
- ValidationError.cs
- BuildProviderUtils.cs
- ComponentResourceKey.cs
- StrongTypingException.cs
- FileLevelControlBuilderAttribute.cs
- OptimizedTemplateContentHelper.cs
- CurrencyManager.cs
- CharKeyFrameCollection.cs
- sapiproxy.cs
- DoubleCollectionConverter.cs
- Propagator.Evaluator.cs
- FigureParagraph.cs
- ToolboxComponentsCreatedEventArgs.cs
- NumericUpDownAccelerationCollection.cs
- LineGeometry.cs
- FileChangesMonitor.cs
- Queue.cs
- ContextMenuStripGroupCollection.cs
- documentsequencetextview.cs
- SuppressIldasmAttribute.cs
- CrossSiteScriptingValidation.cs
- Cloud.cs
- HtmlTextArea.cs
- XamlTypeMapper.cs
- ExpressionBindings.cs
- PreProcessInputEventArgs.cs
- ParameterToken.cs
- ButtonAutomationPeer.cs
- Size3DConverter.cs
- UndoEngine.cs
- externdll.cs
- Matrix.cs
- MetafileHeader.cs
- NotifyCollectionChangedEventArgs.cs
- SafeFindHandle.cs
- ListItemCollection.cs
- Symbol.cs
- ZoneMembershipCondition.cs
- DateTimeHelper.cs
- DefaultAssemblyResolver.cs
- NativeRightsManagementAPIsStructures.cs
- AssemblyNameProxy.cs
- RepeatButtonAutomationPeer.cs
- WindowsIdentity.cs
- BrowserCapabilitiesCompiler.cs
- ClientTargetSection.cs
- SparseMemoryStream.cs
- FormatPage.cs
- XamlPathDataSerializer.cs
- TextElement.cs
- BackgroundFormatInfo.cs
- WmlValidationSummaryAdapter.cs
- QueueSurrogate.cs
- DesignTimeSiteMapProvider.cs
- HotSpotCollection.cs
- Calendar.cs
- XhtmlBasicPageAdapter.cs
- ReadOnlyCollectionBase.cs
- FormatSettings.cs
- TraceLevelStore.cs
- NumberFormatter.cs
- PageTheme.cs
- HttpCachePolicyElement.cs
- WebPartVerbCollection.cs
- CompositionAdorner.cs