Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / codemethodreferenceexpression.cs / 1 / codemethodreferenceexpression.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; using System.Runtime.Serialization; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeMethodReferenceExpression : CodeExpression { private CodeExpression targetObject; private string methodName; [OptionalField] private CodeTypeReferenceCollection typeArguments; ////// Represents an /// expression to invoke a method, to be called on a given target. /// ////// public CodeMethodReferenceExpression() { } ////// Initializes a new instance of ///. /// /// public CodeMethodReferenceExpression(CodeExpression targetObject, string methodName) { TargetObject = targetObject; MethodName = methodName; } public CodeMethodReferenceExpression(CodeExpression targetObject, string methodName, params CodeTypeReference[] typeParameters) { TargetObject = targetObject; MethodName = methodName; if( typeParameters != null && typeParameters.Length > 0) { TypeArguments.AddRange(typeParameters); } } ////// Initializes a new instance of ///using the specified /// target object and method name. /// /// public CodeExpression TargetObject { get { return targetObject; } set { this.targetObject = value; } } ////// Gets or sets the target object. /// ////// public string MethodName { get { return (methodName == null) ? string.Empty : methodName; } set { methodName = value; } } [System.Runtime.InteropServices.ComVisible(false)] public CodeTypeReferenceCollection TypeArguments{ get { if( typeArguments == null) { typeArguments = new CodeTypeReferenceCollection(); } return typeArguments; } } } }/// Gets or sets the name of the method to invoke. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TraceSection.cs
- KnownBoxes.cs
- assertwrapper.cs
- Rect.cs
- DataGridViewColumnEventArgs.cs
- ScopelessEnumAttribute.cs
- TimeSpanStorage.cs
- IListConverters.cs
- WindowsFormsSectionHandler.cs
- XmlMemberMapping.cs
- BrowserCapabilitiesCodeGenerator.cs
- XsltArgumentList.cs
- DbConnectionStringCommon.cs
- SizeChangedInfo.cs
- recordstatefactory.cs
- ManagementClass.cs
- WsatTransactionFormatter.cs
- StylusButton.cs
- TableCell.cs
- PropertyNames.cs
- ObjectManager.cs
- RectAnimation.cs
- QueryExpr.cs
- listitem.cs
- DummyDataSource.cs
- DBSqlParserColumnCollection.cs
- Transform.cs
- WindowsAltTab.cs
- Matrix3D.cs
- ToolbarAUtomationPeer.cs
- CommandHelpers.cs
- CalendarButton.cs
- StrongNameKeyPair.cs
- DeclarativeCatalogPart.cs
- VerificationAttribute.cs
- SoapUnknownHeader.cs
- ContextMenuStripActionList.cs
- ListDataBindEventArgs.cs
- DoubleAnimationUsingPath.cs
- SchemaNames.cs
- CallbackHandler.cs
- TdsEnums.cs
- MouseButtonEventArgs.cs
- DbConnectionStringBuilder.cs
- IntranetCredentialPolicy.cs
- FormsAuthenticationCredentials.cs
- SymmetricAlgorithm.cs
- EFAssociationProvider.cs
- CodeCompileUnit.cs
- DCSafeHandle.cs
- UserPersonalizationStateInfo.cs
- ContentDisposition.cs
- xmlglyphRunInfo.cs
- ProfileParameter.cs
- SiteOfOriginPart.cs
- ListControl.cs
- RuntimeConfigLKG.cs
- ListViewInsertEventArgs.cs
- FontCacheUtil.cs
- CatalogPart.cs
- LOSFormatter.cs
- XmlAnyElementAttribute.cs
- serverconfig.cs
- AsyncPostBackErrorEventArgs.cs
- DataReaderContainer.cs
- BindingOperations.cs
- WebPartUtil.cs
- SynchronizedChannelCollection.cs
- ComAdminWrapper.cs
- AuthenticationManager.cs
- SqlBulkCopyColumnMapping.cs
- CollectionView.cs
- MissingManifestResourceException.cs
- DesignerTransactionCloseEvent.cs
- AnonymousIdentificationSection.cs
- XmlSchemaSet.cs
- TreeViewAutomationPeer.cs
- AstTree.cs
- FontInfo.cs
- DescendentsWalkerBase.cs
- PauseStoryboard.cs
- ArgumentDesigner.xaml.cs
- MarshalDirectiveException.cs
- XmlEnumAttribute.cs
- StorageScalarPropertyMapping.cs
- CallbackValidator.cs
- EntityDataSourceStatementEditor.cs
- Utils.cs
- BinHexEncoder.cs
- DeflateInput.cs
- NameTable.cs
- WSTransactionSection.cs
- OleDbTransaction.cs
- SchemaContext.cs
- DbUpdateCommandTree.cs
- IndexerNameAttribute.cs
- MDIControlStrip.cs
- ResourcePermissionBaseEntry.cs
- CqlIdentifiers.cs
- DiagnosticTrace.cs