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
- CellLabel.cs
- TriggerAction.cs
- AttributeCollection.cs
- SettingsPropertyValue.cs
- ReadOnlyObservableCollection.cs
- ClusterSafeNativeMethods.cs
- LinkButton.cs
- ConsumerConnectionPointCollection.cs
- TableDetailsCollection.cs
- ConsumerConnectionPoint.cs
- SecurityUtils.cs
- SqlCrossApplyToCrossJoin.cs
- FillErrorEventArgs.cs
- WindowsListViewGroup.cs
- ErrorFormatter.cs
- RectAnimationUsingKeyFrames.cs
- DataListItemCollection.cs
- StorageInfo.cs
- TextEditor.cs
- XmlHierarchyData.cs
- EntityDataReader.cs
- X509CertificateValidator.cs
- UnsafeNativeMethods.cs
- TextEndOfParagraph.cs
- ConnectionConsumerAttribute.cs
- HtmlFormWrapper.cs
- MapPathBasedVirtualPathProvider.cs
- ObjectFullSpanRewriter.cs
- _NegoStream.cs
- AppDomainGrammarProxy.cs
- WebSysDefaultValueAttribute.cs
- DbDeleteCommandTree.cs
- WebPartZoneCollection.cs
- TreeNodeBinding.cs
- XamlSerializerUtil.cs
- GridErrorDlg.cs
- WindowsAltTab.cs
- ThemeDirectoryCompiler.cs
- ColumnMapCopier.cs
- DataView.cs
- CookieHandler.cs
- SqlDependency.cs
- ParallelTimeline.cs
- IPipelineRuntime.cs
- EventDescriptorCollection.cs
- EventLogRecord.cs
- IndexedEnumerable.cs
- TextMetrics.cs
- EntityObject.cs
- ChangePassword.cs
- CodePageUtils.cs
- ServiceMoniker.cs
- HttpResponse.cs
- XamlVector3DCollectionSerializer.cs
- ImageUrlEditor.cs
- SafeWaitHandle.cs
- DBBindings.cs
- XmlWriter.cs
- DataGridViewMethods.cs
- XsltLoader.cs
- SqlEnums.cs
- RemoteWebConfigurationHostStream.cs
- DynamicContractTypeBuilder.cs
- BinHexDecoder.cs
- CodeExpressionCollection.cs
- DbDataRecord.cs
- RegionData.cs
- SqlFileStream.cs
- XmlSchemaInfo.cs
- UnsafeNativeMethodsPenimc.cs
- DesignerLoader.cs
- ServiceBusyException.cs
- BindingContext.cs
- Directory.cs
- ColorContextHelper.cs
- _BasicClient.cs
- Variable.cs
- TextEditorDragDrop.cs
- XmlUtilWriter.cs
- TextSearch.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- Predicate.cs
- WaitHandleCannotBeOpenedException.cs
- CorrelationTokenTypeConvertor.cs
- StringSource.cs
- XmlException.cs
- BaseCAMarshaler.cs
- GatewayIPAddressInformationCollection.cs
- Int16Storage.cs
- ProxyWebPartManagerDesigner.cs
- HitTestParameters.cs
- StrokeNodeEnumerator.cs
- XmlSchemaProviderAttribute.cs
- InputMethodStateChangeEventArgs.cs
- MultipleCopiesCollection.cs
- OSFeature.cs
- IfJoinedCondition.cs
- DbParameterCollection.cs
- PackageDigitalSignature.cs
- CaseInsensitiveHashCodeProvider.cs