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
- SerializationHelper.cs
- DataProtection.cs
- SafeCryptContextHandle.cs
- Interlocked.cs
- SslStream.cs
- TypeUsageBuilder.cs
- SyntaxCheck.cs
- Storyboard.cs
- Int16Converter.cs
- DbModificationCommandTree.cs
- baseaxisquery.cs
- ThreadSafeList.cs
- FixUp.cs
- PerformanceCounterManager.cs
- webbrowsersite.cs
- FilteredAttributeCollection.cs
- NativeMethods.cs
- FamilyCollection.cs
- LayoutEngine.cs
- XmlElementCollection.cs
- HtmlInputReset.cs
- SystemParameters.cs
- DelegateHelpers.Generated.cs
- OutputCache.cs
- OpenTypeLayoutCache.cs
- Menu.cs
- FormViewUpdateEventArgs.cs
- WebPart.cs
- PositiveTimeSpanValidatorAttribute.cs
- WmlFormAdapter.cs
- PrintSchema.cs
- SerializationAttributes.cs
- XmlAttributeOverrides.cs
- PathNode.cs
- RotationValidation.cs
- SQLBytes.cs
- OracleConnectionString.cs
- ParameterCollectionEditorForm.cs
- util.cs
- CreatingCookieEventArgs.cs
- GroupBox.cs
- RewritingPass.cs
- Brush.cs
- DataBindingExpressionBuilder.cs
- FileUtil.cs
- SystemColors.cs
- ContentFilePart.cs
- PartDesigner.cs
- WebPartAddingEventArgs.cs
- TimeZone.cs
- XmlSchemaValidator.cs
- MultipartIdentifier.cs
- X509WindowsSecurityToken.cs
- ExpressionServices.cs
- ApplicationCommands.cs
- HttpProfileGroupBase.cs
- SchemaCollectionPreprocessor.cs
- ProxyHwnd.cs
- PersistChildrenAttribute.cs
- diagnosticsswitches.cs
- NetTcpSection.cs
- BindingSource.cs
- CollaborationHelperFunctions.cs
- NativeMethods.cs
- InfoCardBinaryReader.cs
- ScrollBarAutomationPeer.cs
- InkCanvasFeedbackAdorner.cs
- PolygonHotSpot.cs
- ConnectionConsumerAttribute.cs
- TypedReference.cs
- SiteMapDataSourceView.cs
- DockingAttribute.cs
- GenericUI.cs
- Misc.cs
- CalendarDesigner.cs
- SuppressMergeCheckAttribute.cs
- ListControl.cs
- Enum.cs
- Column.cs
- DeclarationUpdate.cs
- SelectionItemPattern.cs
- NameValueCache.cs
- InfiniteIntConverter.cs
- WebBrowserUriTypeConverter.cs
- SpecialFolderEnumConverter.cs
- EditingCoordinator.cs
- TransactedBatchingElement.cs
- CategoryNameCollection.cs
- ConnectionOrientedTransportChannelListener.cs
- DoubleStorage.cs
- PackageDigitalSignatureManager.cs
- Win32MouseDevice.cs
- RichTextBoxAutomationPeer.cs
- ReferenceTypeElement.cs
- WebBrowserNavigatedEventHandler.cs
- SamlAuthorizationDecisionClaimResource.cs
- NoneExcludedImageIndexConverter.cs
- SqlServices.cs
- RootAction.cs
- RoleManagerSection.cs