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
- ComplexBindingPropertiesAttribute.cs
- StructuralType.cs
- KeyMatchBuilder.cs
- JsonReader.cs
- HotSpotCollection.cs
- OperationResponse.cs
- ToolBarOverflowPanel.cs
- SmtpNetworkElement.cs
- AuthenticationModuleElementCollection.cs
- WindowsTab.cs
- ContextMenuStrip.cs
- GridViewDeletedEventArgs.cs
- HighlightComponent.cs
- AuthenticationModuleElement.cs
- DictionaryItemsCollection.cs
- DataSourceHelper.cs
- AuthenticationModuleElement.cs
- IPEndPoint.cs
- PtsCache.cs
- HierarchicalDataSourceControl.cs
- RootAction.cs
- XmlQueryStaticData.cs
- ValidationEventArgs.cs
- FixedSOMElement.cs
- TextElementCollectionHelper.cs
- IgnoreSectionHandler.cs
- ComponentChangedEvent.cs
- altserialization.cs
- OutputScopeManager.cs
- ListViewGroupItemCollection.cs
- FutureFactory.cs
- ObsoleteAttribute.cs
- TemplatePropertyEntry.cs
- ConsumerConnectionPoint.cs
- COM2ExtendedUITypeEditor.cs
- DiagnosticEventProvider.cs
- PageThemeParser.cs
- Queue.cs
- RootBrowserWindow.cs
- ProfilePropertyNameValidator.cs
- MatrixStack.cs
- XsdBuildProvider.cs
- MetadataArtifactLoaderCompositeResource.cs
- AnimatedTypeHelpers.cs
- Context.cs
- GridViewColumnHeaderAutomationPeer.cs
- SafeViewOfFileHandle.cs
- Assembly.cs
- CompoundFileReference.cs
- TemplateControlParser.cs
- XdrBuilder.cs
- LoginUtil.cs
- HttpProfileGroupBase.cs
- ManualWorkflowSchedulerService.cs
- GenericUI.cs
- WindowsUpDown.cs
- AssociationProvider.cs
- BaseParaClient.cs
- Point3DValueSerializer.cs
- SpellerInterop.cs
- ClientCultureInfo.cs
- ValidationError.cs
- PointAnimationClockResource.cs
- ClientApiGenerator.cs
- SimpleWebHandlerParser.cs
- TreeNodeCollectionEditor.cs
- UriTemplateTrieNode.cs
- xmlglyphRunInfo.cs
- _IPv6Address.cs
- BackStopAuthenticationModule.cs
- SqlDataSourceFilteringEventArgs.cs
- ArgumentNullException.cs
- BlurEffect.cs
- TemplateComponentConnector.cs
- UiaCoreProviderApi.cs
- OrderingExpression.cs
- TablePatternIdentifiers.cs
- ToolStripMenuItemCodeDomSerializer.cs
- AttachedPropertyBrowsableAttribute.cs
- LinkedList.cs
- TdsParserHelperClasses.cs
- SupportedAddressingMode.cs
- XPathEmptyIterator.cs
- RouteUrlExpressionBuilder.cs
- EmptyCollection.cs
- RSAPKCS1SignatureDeformatter.cs
- SafeEventLogWriteHandle.cs
- XXXInfos.cs
- DoubleStorage.cs
- HttpCookiesSection.cs
- Script.cs
- PathFigureCollection.cs
- CodeStatementCollection.cs
- ResponseStream.cs
- CheckableControlBaseAdapter.cs
- WindowsRebar.cs
- XmlElement.cs
- DataGridCell.cs
- SizeAnimationClockResource.cs
- Utils.cs