Code:
/ FX-1434 / FX-1434 / 1.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
- StructuredTypeInfo.cs
- COM2ICategorizePropertiesHandler.cs
- InternalPermissions.cs
- BindingCollection.cs
- TableCellCollection.cs
- XmlProcessingInstruction.cs
- Documentation.cs
- DataSvcMapFile.cs
- WeakRefEnumerator.cs
- OdbcConnection.cs
- WorkflowElementDialogWindow.xaml.cs
- StrongName.cs
- XPathAxisIterator.cs
- ParseHttpDate.cs
- CommonObjectSecurity.cs
- ObjectManager.cs
- SqlDataRecord.cs
- typedescriptorpermission.cs
- HttpCacheParams.cs
- SecurityStandardsManager.cs
- XNameTypeConverter.cs
- UnmanagedMarshal.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- CharStorage.cs
- FontStretchConverter.cs
- MaterialCollection.cs
- ScriptManager.cs
- LassoHelper.cs
- WorkflowRuntimeServiceElementCollection.cs
- HWStack.cs
- VariableBinder.cs
- SqlSelectStatement.cs
- NullableDecimalAverageAggregationOperator.cs
- WebPartConnectVerb.cs
- SortDescription.cs
- PluralizationServiceUtil.cs
- NativeMethods.cs
- DecimalKeyFrameCollection.cs
- StrongNameKeyPair.cs
- PhysicalFontFamily.cs
- UIElementHelper.cs
- ByeOperationCD1AsyncResult.cs
- ISessionStateStore.cs
- SqlTypesSchemaImporter.cs
- CombinedGeometry.cs
- ParseNumbers.cs
- StickyNoteAnnotations.cs
- util.cs
- IdentityManager.cs
- TimeSpanOrInfiniteConverter.cs
- EventBuilder.cs
- DynamicValueConverter.cs
- VerificationException.cs
- ColorConverter.cs
- WhereaboutsReader.cs
- DEREncoding.cs
- WebPartTracker.cs
- MessageQueueInstaller.cs
- SqlDeflator.cs
- SQLInt32Storage.cs
- SQLInt32Storage.cs
- TableLayoutPanelDesigner.cs
- sqlmetadatafactory.cs
- PtsContext.cs
- WebPartZoneCollection.cs
- FontClient.cs
- ImageList.cs
- ConfigUtil.cs
- DataColumn.cs
- TextFormatter.cs
- XmlSchemaImporter.cs
- FrameworkElement.cs
- SafeNativeMethodsMilCoreApi.cs
- contentDescriptor.cs
- EventMappingSettings.cs
- WebPartHeaderCloseVerb.cs
- FtpWebRequest.cs
- ExeConfigurationFileMap.cs
- XmlSchemaObjectTable.cs
- Currency.cs
- XmlDataSourceView.cs
- AuthStoreRoleProvider.cs
- DataGridViewComboBoxEditingControl.cs
- TextTreeExtractElementUndoUnit.cs
- ExpressionList.cs
- CompilationUnit.cs
- UInt64Storage.cs
- ManifestResourceInfo.cs
- RegexRunnerFactory.cs
- XmlWrappingReader.cs
- BatchStream.cs
- UnmanagedMemoryStreamWrapper.cs
- UnorderedHashRepartitionStream.cs
- WaitHandleCannotBeOpenedException.cs
- RIPEMD160Managed.cs
- MessageBox.cs
- TreeNodeCollection.cs
- FontStretches.cs
- WizardForm.cs
- UIAgentCrashedException.cs