Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Point3DIndependentAnimationStorage.cs
- ValueTypeFixupInfo.cs
- SamlAuthenticationClaimResource.cs
- AlphabeticalEnumConverter.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- CorrelationService.cs
- ScriptModule.cs
- UrlAuthorizationModule.cs
- BasicViewGenerator.cs
- UnknownBitmapDecoder.cs
- HttpApplicationFactory.cs
- MissingFieldException.cs
- MenuTracker.cs
- ActiveXHelper.cs
- Hashtable.cs
- CollectionEditor.cs
- WinFormsSecurity.cs
- SemanticKeyElement.cs
- EncryptedKeyIdentifierClause.cs
- ExtendedPropertyDescriptor.cs
- DataControlFieldCell.cs
- DrawingContextDrawingContextWalker.cs
- ParseChildrenAsPropertiesAttribute.cs
- AssociatedControlConverter.cs
- RayHitTestParameters.cs
- HostingEnvironmentException.cs
- RolePrincipal.cs
- ApplicationInfo.cs
- BooleanStorage.cs
- ListBoxChrome.cs
- EditingMode.cs
- FileStream.cs
- FixUp.cs
- AttachedPropertyBrowsableAttribute.cs
- TreeSet.cs
- XmlValueConverter.cs
- HttpListenerContext.cs
- GridViewColumnCollection.cs
- SortedDictionary.cs
- XmlBinaryReader.cs
- ConfigurationLoader.cs
- SimpleBitVector32.cs
- EventListenerClientSide.cs
- SignatureResourcePool.cs
- ToolStripPanelRow.cs
- HandlerBase.cs
- WebPartManager.cs
- XhtmlBasicLinkAdapter.cs
- StringBuilder.cs
- System.Data_BID.cs
- XmlException.cs
- DataGridViewRow.cs
- DesignerActionVerbList.cs
- CustomAttributeBuilder.cs
- SimpleBitVector32.cs
- MarshalDirectiveException.cs
- DesignerTransactionCloseEvent.cs
- VisualBasicReference.cs
- ObjectCloneHelper.cs
- ToolStripButton.cs
- CollectionViewGroupRoot.cs
- WrapperSecurityCommunicationObject.cs
- TrackingMemoryStreamFactory.cs
- DependencyObject.cs
- altserialization.cs
- EventLogEntryCollection.cs
- FragmentQuery.cs
- IgnoreFileBuildProvider.cs
- PropertyGridEditorPart.cs
- HtmlMeta.cs
- DashStyle.cs
- CommandSet.cs
- Events.cs
- ListBase.cs
- ExpanderAutomationPeer.cs
- MSHTMLHostUtil.cs
- PageAsyncTask.cs
- SimpleMailWebEventProvider.cs
- SectionInput.cs
- RepeaterCommandEventArgs.cs
- BitmapMetadataEnumerator.cs
- DesignerLoader.cs
- XmlMtomWriter.cs
- DocumentNUp.cs
- MultiTrigger.cs
- SapiInterop.cs
- BrowserCapabilitiesCompiler.cs
- Typography.cs
- ReflectionUtil.cs
- TripleDESCryptoServiceProvider.cs
- KeySpline.cs
- TreeViewTemplateSelector.cs
- PerformanceCounterLib.cs
- Emitter.cs
- Math.cs
- X509SecurityTokenAuthenticator.cs
- AsnEncodedData.cs
- VBIdentifierName.cs
- SetStoryboardSpeedRatio.cs
- WmpBitmapEncoder.cs