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
- TreeNodeConverter.cs
- ModelFactory.cs
- ClientData.cs
- HtmlLink.cs
- LostFocusEventManager.cs
- UnsafeNativeMethods.cs
- FileDialogCustomPlacesCollection.cs
- ByteBufferPool.cs
- LockCookie.cs
- ObjectDataSourceMethodEventArgs.cs
- WorkingDirectoryEditor.cs
- DynamicRouteExpression.cs
- PipelineModuleStepContainer.cs
- TableStyle.cs
- IUnknownConstantAttribute.cs
- SHA256.cs
- LinqTreeNodeEvaluator.cs
- NavigationFailedEventArgs.cs
- PackageController.cs
- GatewayDefinition.cs
- UInt32.cs
- _IPv4Address.cs
- DataListCommandEventArgs.cs
- PageThemeCodeDomTreeGenerator.cs
- _RequestCacheProtocol.cs
- BaseServiceProvider.cs
- HtmlTextArea.cs
- MethodBuilder.cs
- remotingproxy.cs
- Memoizer.cs
- UmAlQuraCalendar.cs
- ProfileService.cs
- XhtmlTextWriter.cs
- PathFigure.cs
- ExpressionBuilderCollection.cs
- COM2Enum.cs
- Stylesheet.cs
- RowSpanVector.cs
- InstalledFontCollection.cs
- ArrowControl.xaml.cs
- GetIndexBinder.cs
- ToolboxItemFilterAttribute.cs
- SignerInfo.cs
- LoginCancelEventArgs.cs
- SimpleFieldTemplateFactory.cs
- XmlException.cs
- RSATokenProvider.cs
- SpeakProgressEventArgs.cs
- PointHitTestParameters.cs
- LocalIdCollection.cs
- HtmlContainerControl.cs
- BulletedListEventArgs.cs
- UriSchemeKeyedCollection.cs
- BaseParser.cs
- WebPartUtil.cs
- Help.cs
- SystemBrushes.cs
- SHA256.cs
- LogPolicy.cs
- TableStyle.cs
- thaishape.cs
- datacache.cs
- ListBoxAutomationPeer.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- CriticalFinalizerObject.cs
- ListView.cs
- GenericPrincipal.cs
- HealthMonitoringSectionHelper.cs
- WCFServiceClientProxyGenerator.cs
- log.cs
- ColumnClickEvent.cs
- RegexRunnerFactory.cs
- CodeGotoStatement.cs
- ChtmlPhoneCallAdapter.cs
- ChangeProcessor.cs
- HtmlButton.cs
- Menu.cs
- GradientSpreadMethodValidation.cs
- ExtentCqlBlock.cs
- PrintPreviewDialog.cs
- RelationshipSet.cs
- HttpContext.cs
- LocalizationComments.cs
- Registry.cs
- ColumnPropertiesGroup.cs
- PermissionSetTriple.cs
- CacheEntry.cs
- DesignBindingValueUIHandler.cs
- EventLogSession.cs
- Vector3D.cs
- MessageDroppedTraceRecord.cs
- FileVersion.cs
- RecognizedPhrase.cs
- StringDictionaryEditor.cs
- MissingFieldException.cs
- DataGridViewCellValidatingEventArgs.cs
- IdnElement.cs
- TransformConverter.cs
- SqlCachedBuffer.cs
- CommonDialog.cs