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
- ThicknessAnimationBase.cs
- StreamReader.cs
- RequestQueryProcessor.cs
- CheckPair.cs
- ConditionalAttribute.cs
- DesignerAdRotatorAdapter.cs
- SqlRowUpdatingEvent.cs
- ThreadAbortException.cs
- KeyPressEvent.cs
- EventSinkActivity.cs
- DisableDpiAwarenessAttribute.cs
- HostingEnvironment.cs
- StringValidatorAttribute.cs
- TokenFactoryBase.cs
- PcmConverter.cs
- RequestCache.cs
- NotifyCollectionChangedEventArgs.cs
- QuadTree.cs
- PathSegment.cs
- XmlUrlEditor.cs
- ConnectionStringsExpressionEditor.cs
- ResourceDictionaryCollection.cs
- SpellerHighlightLayer.cs
- ResourceExpressionEditor.cs
- Message.cs
- MsmqAppDomainProtocolHandler.cs
- NavigationEventArgs.cs
- SchemaImporterExtensionElementCollection.cs
- StringReader.cs
- MultiPropertyDescriptorGridEntry.cs
- DisposableCollectionWrapper.cs
- TaiwanCalendar.cs
- Pair.cs
- EmptyQuery.cs
- ProcessThread.cs
- DependencyPropertyAttribute.cs
- TextEditorCharacters.cs
- SelectionManager.cs
- ParsedAttributeCollection.cs
- AttributeUsageAttribute.cs
- IsolatedStorageException.cs
- SemanticResultKey.cs
- WinEventQueueItem.cs
- SerializationException.cs
- SecurityResources.cs
- FontWeightConverter.cs
- ContourSegment.cs
- DisplayMemberTemplateSelector.cs
- ForeignKeyConstraint.cs
- DataServiceQueryOfT.cs
- OneOf.cs
- Helper.cs
- ICspAsymmetricAlgorithm.cs
- ActivityPreviewDesigner.cs
- Int32.cs
- RoleService.cs
- CloseCollectionAsyncResult.cs
- Directory.cs
- TypedReference.cs
- NativeStructs.cs
- ProcessModuleCollection.cs
- documentsequencetextcontainer.cs
- XmlRootAttribute.cs
- DataGridViewSelectedColumnCollection.cs
- SqlDataSourceAdvancedOptionsForm.cs
- PagePropertiesChangingEventArgs.cs
- CommonXSendMessage.cs
- ForeignKeyFactory.cs
- SectionInformation.cs
- MobileControlDesigner.cs
- ReflectionTypeLoadException.cs
- PreloadedPackages.cs
- Int16Converter.cs
- BinaryMethodMessage.cs
- PropertyItemInternal.cs
- DetailsView.cs
- SingleAnimation.cs
- UnionExpr.cs
- RawStylusInputReport.cs
- PickBranchDesigner.xaml.cs
- GACIdentityPermission.cs
- Axis.cs
- CountAggregationOperator.cs
- OnOperation.cs
- Subset.cs
- SimpleApplicationHost.cs
- ControlBuilderAttribute.cs
- DataGridViewCellPaintingEventArgs.cs
- OptionUsage.cs
- ParameterCollectionEditorForm.cs
- EdmProperty.cs
- ApplicationManager.cs
- shaperfactoryquerycacheentry.cs
- HtmlTableCell.cs
- UIServiceHelper.cs
- ListItem.cs
- CultureInfoConverter.cs
- InfiniteIntConverter.cs
- StorageScalarPropertyMapping.cs
- SqlTrackingWorkflowInstance.cs