Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InvalidEnumArgumentException.cs
- SqlParameter.cs
- ChtmlTextWriter.cs
- EditorPartCollection.cs
- SymLanguageType.cs
- Native.cs
- TopClause.cs
- OleDbReferenceCollection.cs
- DispatcherProcessingDisabled.cs
- ScrollChrome.cs
- PeerInvitationResponse.cs
- Rect.cs
- RemoteWebConfigurationHost.cs
- InvalidDocumentContentsException.cs
- SafeCryptoHandles.cs
- ImportContext.cs
- BitmapEffectInputData.cs
- NumberAction.cs
- BindingBase.cs
- EdgeModeValidation.cs
- DataSetViewSchema.cs
- HttpConfigurationContext.cs
- TabItemAutomationPeer.cs
- UnsafeNativeMethods.cs
- QuotedPrintableStream.cs
- FileUtil.cs
- AssociationTypeEmitter.cs
- XmlHierarchyData.cs
- SqlNodeAnnotations.cs
- DescriptionCreator.cs
- MaskedTextProvider.cs
- GcSettings.cs
- UrlPropertyAttribute.cs
- CompoundFileReference.cs
- LineVisual.cs
- KeyedCollection.cs
- TabRenderer.cs
- ToolStripMenuItem.cs
- Triplet.cs
- PrintingPermission.cs
- NetworkInformationException.cs
- GZipStream.cs
- ProofTokenCryptoHandle.cs
- FileLoadException.cs
- DataGridViewTextBoxCell.cs
- regiisutil.cs
- UnsafeCollabNativeMethods.cs
- EraserBehavior.cs
- SystemDropShadowChrome.cs
- XmlDataLoader.cs
- StringDictionary.cs
- GridItemPatternIdentifiers.cs
- AttributeCollection.cs
- METAHEADER.cs
- PocoEntityKeyStrategy.cs
- XmlSchemaComplexContent.cs
- InvalidEnumArgumentException.cs
- MeshGeometry3D.cs
- ActivityDesignerResources.cs
- HebrewCalendar.cs
- RawStylusInputCustomDataList.cs
- QuaternionKeyFrameCollection.cs
- SignedPkcs7.cs
- VirtualDirectoryMappingCollection.cs
- CommandValueSerializer.cs
- TextDecorationLocationValidation.cs
- PrimitiveType.cs
- AVElementHelper.cs
- HttpAsyncResult.cs
- SelectionListComponentEditor.cs
- ExceptionList.cs
- TokenizerHelper.cs
- BinaryMethodMessage.cs
- RegexInterpreter.cs
- TypeConverterAttribute.cs
- ClientRuntimeConfig.cs
- SamlAuthorizationDecisionClaimResource.cs
- COM2PictureConverter.cs
- PersonalizationStateInfoCollection.cs
- MailMessage.cs
- PageCache.cs
- MembershipSection.cs
- PathFigure.cs
- Maps.cs
- CredentialManagerDialog.cs
- BufferModeSettings.cs
- WebEvents.cs
- EncoderExceptionFallback.cs
- ASCIIEncoding.cs
- TextServicesManager.cs
- SelectedPathEditor.cs
- TreeNodeMouseHoverEvent.cs
- GridViewSelectEventArgs.cs
- AspNetSynchronizationContext.cs
- OdbcStatementHandle.cs
- CodeCatchClauseCollection.cs
- XmlSerializerAssemblyAttribute.cs
- DbConnectionPoolIdentity.cs
- EventLogWatcher.cs
- InfoCardAsymmetricCrypto.cs