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
- Menu.cs
- HttpListenerResponse.cs
- RequestStatusBarUpdateEventArgs.cs
- DocumentSignatureManager.cs
- Empty.cs
- SystemColors.cs
- ImpersonationContext.cs
- DataGridViewCellCollection.cs
- SafeCryptoHandles.cs
- SqlServices.cs
- AutoResizedEvent.cs
- DictionaryTraceRecord.cs
- StrongNameKeyPair.cs
- CompoundFileIOPermission.cs
- WebControlAdapter.cs
- IndentedTextWriter.cs
- RenderTargetBitmap.cs
- KeyConverter.cs
- mactripleDES.cs
- DesignTableCollection.cs
- EntityClientCacheKey.cs
- MatrixKeyFrameCollection.cs
- BitmapFrame.cs
- RegexEditorDialog.cs
- GraphicsContext.cs
- Rotation3DAnimationBase.cs
- DataControlLinkButton.cs
- HtmlDocument.cs
- StrokeDescriptor.cs
- ExpressionBuilderCollection.cs
- DBSchemaTable.cs
- BinaryObjectWriter.cs
- KeyNotFoundException.cs
- RadioButtonFlatAdapter.cs
- Table.cs
- ToolStripGrip.cs
- GridViewColumn.cs
- GlobalizationAssembly.cs
- HeaderCollection.cs
- TableLayout.cs
- MonthCalendar.cs
- ToolStripContainer.cs
- MenuCommands.cs
- TypeBuilder.cs
- ValueHandle.cs
- BypassElementCollection.cs
- HttpModuleActionCollection.cs
- ItemAutomationPeer.cs
- InheritanceContextChangedEventManager.cs
- ObsoleteAttribute.cs
- Listbox.cs
- Span.cs
- DerivedKeySecurityTokenStub.cs
- HttpHandlerAction.cs
- ContentPlaceHolder.cs
- DispatcherTimer.cs
- ConnectionPointGlyph.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- EntityDataSourceDesignerHelper.cs
- ParenthesizePropertyNameAttribute.cs
- ConfigurationValues.cs
- PropertyPathWorker.cs
- XmlQueryStaticData.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ListViewItemMouseHoverEvent.cs
- DoubleStorage.cs
- PrefixQName.cs
- ItemChangedEventArgs.cs
- OracleDataReader.cs
- ELinqQueryState.cs
- MemberProjectedSlot.cs
- FormatterConverter.cs
- MatrixIndependentAnimationStorage.cs
- OleAutBinder.cs
- CLRBindingWorker.cs
- StylusPlugin.cs
- SecurityUtils.cs
- SoapFaultCodes.cs
- DataRowView.cs
- WindowsStatic.cs
- HttpRequestWrapper.cs
- SrgsElementFactoryCompiler.cs
- HelpInfo.cs
- ProviderMetadataCachedInformation.cs
- TableRow.cs
- GridViewCellAutomationPeer.cs
- LocalizableResourceBuilder.cs
- VerticalAlignConverter.cs
- DataPagerFieldCommandEventArgs.cs
- UniqueID.cs
- LambdaCompiler.Address.cs
- PerformanceCountersElement.cs
- EtwTrace.cs
- X509ServiceCertificateAuthenticationElement.cs
- CharEntityEncoderFallback.cs
- HyperLinkDataBindingHandler.cs
- ByteKeyFrameCollection.cs
- Pens.cs
- MappingSource.cs
- ReadOnlyCollectionBase.cs