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
- RoutedEventHandlerInfo.cs
- ContentFilePart.cs
- TextTreeTextElementNode.cs
- VirtualPathUtility.cs
- DatePickerDateValidationErrorEventArgs.cs
- XXXInfos.cs
- SpeechEvent.cs
- BidirectionalDictionary.cs
- Resources.Designer.cs
- ObjectDataSourceMethodEventArgs.cs
- FormatStringEditor.cs
- RemoteHelper.cs
- XmlBoundElement.cs
- GridProviderWrapper.cs
- RadioButton.cs
- ChineseLunisolarCalendar.cs
- EditorPartCollection.cs
- StylusPointPropertyInfoDefaults.cs
- StringFunctions.cs
- IdleTimeoutMonitor.cs
- MessageQueueEnumerator.cs
- CopyAttributesAction.cs
- HwndSource.cs
- DockProviderWrapper.cs
- ChameleonKey.cs
- CSharpCodeProvider.cs
- WorkerRequest.cs
- TimeIntervalCollection.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- TextServicesCompartmentEventSink.cs
- WorkflowWebHostingModule.cs
- ContractBase.cs
- Scripts.cs
- WindowShowOrOpenTracker.cs
- ControlBindingsCollection.cs
- ApplicationException.cs
- Vector3DAnimation.cs
- MemberInfoSerializationHolder.cs
- SendSecurityHeaderElementContainer.cs
- RenamedEventArgs.cs
- Positioning.cs
- CodeDomSerializerBase.cs
- InputLangChangeEvent.cs
- ConfigPathUtility.cs
- XmlValidatingReader.cs
- CodeDelegateCreateExpression.cs
- RSAOAEPKeyExchangeDeformatter.cs
- RightsManagementInformation.cs
- DiscoveryClient.cs
- AvTraceFormat.cs
- ClipboardData.cs
- WebPartPersonalization.cs
- AdCreatedEventArgs.cs
- InputScope.cs
- AssemblySettingAttributes.cs
- SelectionItemProviderWrapper.cs
- PropertyDescriptorComparer.cs
- BufferedReceiveElement.cs
- DesignerPerfEventProvider.cs
- WinFormsUtils.cs
- DependencyStoreSurrogate.cs
- OneToOneMappingSerializer.cs
- AnnotationObservableCollection.cs
- SafeFindHandle.cs
- XmlSchemaComplexContentRestriction.cs
- Vector3DCollectionConverter.cs
- WebBrowserProgressChangedEventHandler.cs
- DesigntimeLicenseContext.cs
- wgx_sdk_version.cs
- CompatibleComparer.cs
- Zone.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- RecognizeCompletedEventArgs.cs
- ReliableMessagingHelpers.cs
- Bidi.cs
- HttpContextServiceHost.cs
- ExclusiveTcpTransportManager.cs
- CopyOnWriteList.cs
- ToolStripRenderer.cs
- WmlValidationSummaryAdapter.cs
- PositiveTimeSpanValidator.cs
- HiddenField.cs
- LambdaCompiler.Expressions.cs
- UInt64.cs
- RangeValueProviderWrapper.cs
- RowBinding.cs
- DocumentPageTextView.cs
- DBConnection.cs
- KnownColorTable.cs
- SubMenuStyle.cs
- SplineKeyFrames.cs
- AssociativeAggregationOperator.cs
- InputReport.cs
- RegexCapture.cs
- SelectorItemAutomationPeer.cs
- Blend.cs
- WorkflowTransactionOptions.cs
- FrameworkReadOnlyPropertyMetadata.cs
- MonitorWrapper.cs
- PrintDialogException.cs