Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets the name of the method to invoke. /// ///// 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; } } } } // 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
- LambdaCompiler.Expressions.cs
- FontDialog.cs
- TopClause.cs
- TransformerInfoCollection.cs
- dataprotectionpermission.cs
- SamlConstants.cs
- CaseStatement.cs
- LocalizationParserHooks.cs
- SeparatorAutomationPeer.cs
- QilInvokeEarlyBound.cs
- ControlPropertyNameConverter.cs
- TableCellCollection.cs
- JoinTreeSlot.cs
- XPathAncestorQuery.cs
- ISAPIWorkerRequest.cs
- SynthesizerStateChangedEventArgs.cs
- StateDesignerConnector.cs
- ProtocolsConfiguration.cs
- WebPartActionVerb.cs
- AdornerLayer.cs
- ToolStripScrollButton.cs
- SevenBitStream.cs
- DataListItemEventArgs.cs
- MsmqIntegrationValidationBehavior.cs
- SqlGenerator.cs
- DisplayInformation.cs
- PageCodeDomTreeGenerator.cs
- Margins.cs
- QilName.cs
- InstanceDescriptor.cs
- FilterException.cs
- ThicknessAnimationBase.cs
- SqlVersion.cs
- EntityViewGenerationAttribute.cs
- PopupRoot.cs
- ManifestResourceInfo.cs
- TypedRowGenerator.cs
- KnownAssembliesSet.cs
- CriticalHandle.cs
- RouteValueDictionary.cs
- BindableTemplateBuilder.cs
- SeparatorAutomationPeer.cs
- MetabaseServerConfig.cs
- FlowLayoutPanel.cs
- MaterialGroup.cs
- RectangleConverter.cs
- XmlSerializerAssemblyAttribute.cs
- PasswordRecoveryAutoFormat.cs
- srgsitem.cs
- infer.cs
- ButtonBaseDesigner.cs
- IndentTextWriter.cs
- XhtmlBasicImageAdapter.cs
- HiddenFieldPageStatePersister.cs
- DataGridViewRowsRemovedEventArgs.cs
- EventLogPermissionAttribute.cs
- RelationshipManager.cs
- FrameworkContentElementAutomationPeer.cs
- DataSvcMapFile.cs
- HuffModule.cs
- DataSysAttribute.cs
- SrgsElement.cs
- ObjectRef.cs
- MailMessage.cs
- COAUTHINFO.cs
- ThreadExceptionEvent.cs
- HtmlInputReset.cs
- hresults.cs
- CodeIndexerExpression.cs
- Not.cs
- Pointer.cs
- IndentTextWriter.cs
- WebPartConnectionCollection.cs
- SevenBitStream.cs
- TargetInvocationException.cs
- PropertyGeneratedEventArgs.cs
- WCFServiceClientProxyGenerator.cs
- ClientSettings.cs
- EmissiveMaterial.cs
- PaperSize.cs
- SortFieldComparer.cs
- ErrorInfoXmlDocument.cs
- WebControl.cs
- ProfessionalColorTable.cs
- ClockController.cs
- MultipleViewPatternIdentifiers.cs
- ParserOptions.cs
- InstanceDescriptor.cs
- EdmItemCollection.cs
- InheritanceContextHelper.cs
- DnsPermission.cs
- RegexNode.cs
- KeyedCollection.cs
- TypefaceMetricsCache.cs
- SemaphoreSlim.cs
- HttpRawResponse.cs
- ListView.cs
- XmlDomTextWriter.cs
- ExpressionBindings.cs
- ModuleElement.cs