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
- EmptyImpersonationContext.cs
- WorkflowMarkupSerializationManager.cs
- BooleanKeyFrameCollection.cs
- LowerCaseStringConverter.cs
- SessionEndingEventArgs.cs
- SystemWebCachingSectionGroup.cs
- MultiView.cs
- ConsoleCancelEventArgs.cs
- CachedTypeface.cs
- EntityDataSourceContextCreatedEventArgs.cs
- ScrollProperties.cs
- MachineKeyConverter.cs
- GridViewCancelEditEventArgs.cs
- SafeLibraryHandle.cs
- PolyBezierSegment.cs
- login.cs
- UserControlBuildProvider.cs
- NegationPusher.cs
- MarshalDirectiveException.cs
- TagNameToTypeMapper.cs
- PathData.cs
- DataObjectMethodAttribute.cs
- ProxyManager.cs
- ObjectListShowCommandsEventArgs.cs
- ping.cs
- DataBindingHandlerAttribute.cs
- ToolStripSplitButton.cs
- CompressEmulationStream.cs
- HtmlTableRowCollection.cs
- FixedSOMTable.cs
- CFStream.cs
- sapiproxy.cs
- Style.cs
- MessageFormatterConverter.cs
- DataListItemCollection.cs
- Error.cs
- hresults.cs
- Drawing.cs
- PropertyCollection.cs
- OrderedDictionary.cs
- XmlNodeReader.cs
- SettingsPropertyValue.cs
- DataSourceProvider.cs
- GridViewSelectEventArgs.cs
- TraceContext.cs
- _DigestClient.cs
- JulianCalendar.cs
- String.cs
- WinHttpWebProxyFinder.cs
- FormViewInsertEventArgs.cs
- NTAccount.cs
- DiscoveryEndpoint.cs
- RSAProtectedConfigurationProvider.cs
- FreeFormPanel.cs
- PrimitiveXmlSerializers.cs
- EnumMember.cs
- NativeConfigurationLoader.cs
- RotateTransform3D.cs
- ListViewInsertedEventArgs.cs
- RadioButton.cs
- XpsS0ValidatingLoader.cs
- GenericPrincipal.cs
- GenericIdentity.cs
- QueryOperationResponseOfT.cs
- DataGrid.cs
- ServiceBuildProvider.cs
- DocumentPageTextView.cs
- RewritingProcessor.cs
- OrderedDictionaryStateHelper.cs
- PointCollectionConverter.cs
- QueryStringParameter.cs
- Vector3DValueSerializer.cs
- FigureHelper.cs
- CheckBoxRenderer.cs
- QilStrConcatenator.cs
- BinHexDecoder.cs
- RenderData.cs
- TemplateKey.cs
- Int64KeyFrameCollection.cs
- DataControlLinkButton.cs
- SendMessageRecord.cs
- Monitor.cs
- OpenTypeLayout.cs
- ScrollContentPresenter.cs
- QilIterator.cs
- XmlnsDictionary.cs
- _OSSOCK.cs
- AggregateNode.cs
- LinkLabelLinkClickedEvent.cs
- UrlAuthFailedErrorFormatter.cs
- BamlResourceContent.cs
- RC2CryptoServiceProvider.cs
- MessageFault.cs
- SegmentInfo.cs
- RadioButtonPopupAdapter.cs
- XPathDocumentBuilder.cs
- formatter.cs
- _SSPISessionCache.cs
- WsdlBuildProvider.cs
- EntryWrittenEventArgs.cs