Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SharedUtils.cs
- XmlMemberMapping.cs
- WeakReference.cs
- DoubleConverter.cs
- ActivityPreviewDesigner.cs
- TextElementEnumerator.cs
- ScaleTransform3D.cs
- SurrogateEncoder.cs
- RelatedView.cs
- uribuilder.cs
- GridViewEditEventArgs.cs
- XamlDebuggerXmlReader.cs
- TypeForwardedToAttribute.cs
- CodeDomSerializerBase.cs
- Int64Converter.cs
- SerializationStore.cs
- LOSFormatter.cs
- HttpContextServiceHost.cs
- GlobalizationSection.cs
- QualifiedCellIdBoolean.cs
- XPathException.cs
- Propagator.cs
- HttpInputStream.cs
- WebException.cs
- ConfigsHelper.cs
- ScopelessEnumAttribute.cs
- PassportPrincipal.cs
- FixedTextContainer.cs
- PrintDialog.cs
- Hashtable.cs
- hresults.cs
- HwndKeyboardInputProvider.cs
- DBNull.cs
- Walker.cs
- XamlLoadErrorInfo.cs
- CreateUserWizardDesigner.cs
- DataListItem.cs
- ItemsPresenter.cs
- BuilderPropertyEntry.cs
- CompiledRegexRunner.cs
- TemplatedWizardStep.cs
- ContentType.cs
- ScrollItemProviderWrapper.cs
- KeyedHashAlgorithm.cs
- DbReferenceCollection.cs
- Number.cs
- AnnouncementDispatcherAsyncResult.cs
- Deflater.cs
- C14NUtil.cs
- ToggleButtonAutomationPeer.cs
- SoapAttributeAttribute.cs
- PagesChangedEventArgs.cs
- CompositeControl.cs
- ItemContainerGenerator.cs
- SafeCoTaskMem.cs
- ForceCopyBuildProvider.cs
- ProviderUtil.cs
- TagMapInfo.cs
- WorkItem.cs
- ClientFormsAuthenticationCredentials.cs
- FileIOPermission.cs
- ExtendedProtectionPolicyElement.cs
- PathSegment.cs
- ScriptReferenceEventArgs.cs
- ImageMapEventArgs.cs
- ImageListStreamer.cs
- DataGridViewRowCancelEventArgs.cs
- SortDescriptionCollection.cs
- ListItemCollection.cs
- HtmlMobileTextWriter.cs
- TimeSpanFormat.cs
- columnmapkeybuilder.cs
- ParallelLoopState.cs
- Matrix3DConverter.cs
- TokenCreationParameter.cs
- PointConverter.cs
- XPathNavigatorReader.cs
- DataTemplateKey.cs
- FilteredDataSetHelper.cs
- KeyValuePairs.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- UIPropertyMetadata.cs
- HostedElements.cs
- RoleServiceManager.cs
- DesignerAutoFormatStyle.cs
- WindowShowOrOpenTracker.cs
- Events.cs
- PolygonHotSpot.cs
- CompModSwitches.cs
- x509store.cs
- PhysicalAddress.cs
- EdmScalarPropertyAttribute.cs
- WrapPanel.cs
- ExecutionContext.cs
- StreamFormatter.cs
- EntryPointNotFoundException.cs
- HashHelper.cs
- CommonRemoteMemoryBlock.cs
- Geometry.cs
- StylusPointDescription.cs