Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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;
}
}
}
}
// 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
- UnsignedPublishLicense.cs
- Function.cs
- DocumentPaginator.cs
- LabelDesigner.cs
- Point.cs
- CodeAttributeArgument.cs
- NavigationFailedEventArgs.cs
- ImportContext.cs
- SyndicationItemFormatter.cs
- CategoryGridEntry.cs
- TaiwanLunisolarCalendar.cs
- Psha1DerivedKeyGenerator.cs
- BackStopAuthenticationModule.cs
- NavigatorOutput.cs
- StreamProxy.cs
- DataGridHelper.cs
- RTLAwareMessageBox.cs
- MultipleCopiesCollection.cs
- basecomparevalidator.cs
- ToolStripProgressBar.cs
- AndCondition.cs
- OrderPreservingPipeliningMergeHelper.cs
- COM2PropertyPageUITypeConverter.cs
- SqlDataReaderSmi.cs
- TraversalRequest.cs
- _ListenerResponseStream.cs
- DoubleAnimation.cs
- ExpandedProjectionNode.cs
- PolygonHotSpot.cs
- TaiwanCalendar.cs
- StrokeRenderer.cs
- TdsParserSessionPool.cs
- StringHelper.cs
- EntitySet.cs
- NetPeerTcpBinding.cs
- UserMapPath.cs
- LookupNode.cs
- SqlParameterizer.cs
- WindowsTokenRoleProvider.cs
- IERequestCache.cs
- WarningException.cs
- TextProperties.cs
- PolicyReader.cs
- BitmapEffectInputConnector.cs
- WhileDesigner.xaml.cs
- XmlSchemaAttribute.cs
- UpdateCommand.cs
- HealthMonitoringSection.cs
- HtmlInputFile.cs
- ContextProperty.cs
- Baml6ConstructorInfo.cs
- IndicCharClassifier.cs
- DbFunctionCommandTree.cs
- UserControlAutomationPeer.cs
- OutputWindow.cs
- MSAAWinEventWrap.cs
- MSAAEventDispatcher.cs
- DataGridPreparingCellForEditEventArgs.cs
- ScriptControl.cs
- DirectoryGroupQuery.cs
- UnsafeNativeMethods.cs
- DataControlFieldHeaderCell.cs
- CompilationSection.cs
- XmlSchemaAny.cs
- DownloadProgressEventArgs.cs
- BitmapEffectDrawingContextWalker.cs
- QueryContinueDragEvent.cs
- Renderer.cs
- _SslStream.cs
- CloudCollection.cs
- BodyGlyph.cs
- WebWorkflowRole.cs
- InstalledVoice.cs
- GridViewSortEventArgs.cs
- ScriptDescriptor.cs
- BypassElement.cs
- RuntimeHelpers.cs
- DesignerOptionService.cs
- ThicknessConverter.cs
- RouteData.cs
- WebPartVerbCollection.cs
- BuildProvidersCompiler.cs
- filewebresponse.cs
- BaseProcessor.cs
- ManagementException.cs
- FileUtil.cs
- HtmlSelect.cs
- TrustLevel.cs
- ItemMap.cs
- UnauthorizedWebPart.cs
- DataComponentGenerator.cs
- SHA1Managed.cs
- Cloud.cs
- AtomServiceDocumentSerializer.cs
- CurrentTimeZone.cs
- EmptyImpersonationContext.cs
- DrawItemEvent.cs
- GreenMethods.cs
- WebPartManagerInternals.cs
- OutputCacheModule.cs