Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / codemethodreferenceexpression.cs / 1305376 / codemethodreferenceexpression.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; using System.Runtime.Serialization; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// 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
- XmlRawWriterWrapper.cs
- CatalogPartChrome.cs
- DialogResultConverter.cs
- GenericUriParser.cs
- NativeMethods.cs
- ImageButton.cs
- DataKeyArray.cs
- MimeXmlImporter.cs
- PolyQuadraticBezierSegment.cs
- VariableExpressionConverter.cs
- PrintDialog.cs
- SafeEventLogWriteHandle.cs
- CodeAttributeArgumentCollection.cs
- SelectionRange.cs
- Input.cs
- FlowDocumentPaginator.cs
- OptimalBreakSession.cs
- TrackingQuery.cs
- VariableAction.cs
- UnsafeNativeMethods.cs
- HttpModuleActionCollection.cs
- SmiContext.cs
- ClientRoleProvider.cs
- ProgressiveCrcCalculatingStream.cs
- ComponentResourceKeyConverter.cs
- ServiceDebugBehavior.cs
- WebPartConnectionsConfigureVerb.cs
- BinaryCommonClasses.cs
- AssemblyName.cs
- _TransmitFileOverlappedAsyncResult.cs
- UriTemplateTrieLocation.cs
- DataTableExtensions.cs
- StorageInfo.cs
- TemplateApplicationHelper.cs
- DocumentApplication.cs
- StickyNoteContentControl.cs
- WindowsIPAddress.cs
- Clause.cs
- WeakReference.cs
- XamlStyleSerializer.cs
- HandlerBase.cs
- SharedStatics.cs
- StaticExtensionConverter.cs
- XmlAnyAttributeAttribute.cs
- Set.cs
- TextRangeBase.cs
- ToolStripContainer.cs
- DependencyPropertyHelper.cs
- BindingExpressionUncommonField.cs
- StringToken.cs
- PageEventArgs.cs
- DoubleConverter.cs
- SystemUnicastIPAddressInformation.cs
- CodeRemoveEventStatement.cs
- NotifyCollectionChangedEventArgs.cs
- CapabilitiesPattern.cs
- DocumentPageView.cs
- SecurityContextSecurityTokenResolver.cs
- Wizard.cs
- _ShellExpression.cs
- PageContent.cs
- CodeLinePragma.cs
- SettingsProviderCollection.cs
- SmtpException.cs
- StateMachineTimers.cs
- GACMembershipCondition.cs
- TextEffectCollection.cs
- DbDataSourceEnumerator.cs
- IPEndPointCollection.cs
- HtmlObjectListAdapter.cs
- Pair.cs
- NativeMethods.cs
- AttachmentCollection.cs
- SByte.cs
- backend.cs
- CompilationUnit.cs
- DataSourceXmlTextReader.cs
- PathData.cs
- WhereQueryOperator.cs
- FormViewPageEventArgs.cs
- _BufferOffsetSize.cs
- ADMembershipUser.cs
- ReadOnlyDictionary.cs
- Misc.cs
- Localizer.cs
- PowerStatus.cs
- BasicBrowserDialog.cs
- CodeTypeOfExpression.cs
- SafeCertificateContext.cs
- BindingMemberInfo.cs
- uribuilder.cs
- AncestorChangedEventArgs.cs
- Number.cs
- Listbox.cs
- Transform.cs
- PolicyImporterElementCollection.cs
- COM2ColorConverter.cs
- TrustLevel.cs
- NavigationPropertySingletonExpression.cs
- DesignerDataParameter.cs