Code:
/ 4.0 / 4.0 / 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. /// ///// // //----------------------------------------------------------------------------- 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
- ResourceAttributes.cs
- ClientRuntimeConfig.cs
- RuntimeResourceSet.cs
- PageCopyCount.cs
- TransactionScope.cs
- PtsHost.cs
- SqlCharStream.cs
- ProxyHwnd.cs
- OdbcException.cs
- Utils.cs
- ContextMenuAutomationPeer.cs
- Point.cs
- ExternalFile.cs
- ReadWriteObjectLock.cs
- ControlPropertyNameConverter.cs
- ScaleTransform3D.cs
- SqlWorkflowInstanceStore.cs
- TouchesCapturedWithinProperty.cs
- DisplayInformation.cs
- SharedPersonalizationStateInfo.cs
- TheQuery.cs
- PtsPage.cs
- SymmetricCryptoHandle.cs
- UInt16Storage.cs
- ObjectPersistData.cs
- PrivilegeNotHeldException.cs
- DesignParameter.cs
- ParamArrayAttribute.cs
- IISMapPath.cs
- Literal.cs
- NameTable.cs
- ExpressionBuilder.cs
- HybridObjectCache.cs
- ScriptResourceHandler.cs
- ModulesEntry.cs
- StringKeyFrameCollection.cs
- PassportPrincipal.cs
- CommonGetThemePartSize.cs
- BitmapCodecInfo.cs
- System.Data_BID.cs
- DragDropHelper.cs
- ScriptManager.cs
- GridViewActionList.cs
- SafeNativeMethods.cs
- SchemaConstraints.cs
- ExceptionHandler.cs
- QilParameter.cs
- DataServiceQueryException.cs
- System.Data_BID.cs
- EventPropertyMap.cs
- ScriptManagerProxy.cs
- ColumnHeader.cs
- BindUriHelper.cs
- DataFormat.cs
- EdmSchemaAttribute.cs
- input.cs
- SamlDelegatingWriter.cs
- XmlSerializationWriter.cs
- EntityProviderFactory.cs
- FormattedText.cs
- XmlRawWriter.cs
- WS2007HttpBindingCollectionElement.cs
- dtdvalidator.cs
- SiblingIterators.cs
- DataGridViewCellConverter.cs
- EmptyElement.cs
- MarshalByRefObject.cs
- TypeExtensionConverter.cs
- DependencyObjectType.cs
- ObjectPersistData.cs
- Point.cs
- TextFormatterImp.cs
- BStrWrapper.cs
- WebUtil.cs
- DataGridViewButtonCell.cs
- TableAdapterManagerNameHandler.cs
- MergablePropertyAttribute.cs
- SqlNodeAnnotations.cs
- DataControlPagerLinkButton.cs
- DataGridRow.cs
- SqlConnectionPoolProviderInfo.cs
- DocumentXmlWriter.cs
- ZoomPercentageConverter.cs
- IIS7UserPrincipal.cs
- CodeTryCatchFinallyStatement.cs
- XmlBaseReader.cs
- XmlSchemaProviderAttribute.cs
- Utils.cs
- ItemMap.cs
- ModulesEntry.cs
- ConfigDefinitionUpdates.cs
- ApplicationId.cs
- ArgumentException.cs
- DataGridViewEditingControlShowingEventArgs.cs
- SubclassTypeValidator.cs
- ServerReliableChannelBinder.cs
- NameValueSectionHandler.cs
- NestPullup.cs
- HttpConfigurationContext.cs
- PaintValueEventArgs.cs