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
- TextBoxAutomationPeer.cs
- XmlRootAttribute.cs
- StringUtil.cs
- ZipIOCentralDirectoryBlock.cs
- RequiredAttributeAttribute.cs
- UndoEngine.cs
- CornerRadius.cs
- IndexedString.cs
- WorkflowTimerService.cs
- CodeDomConfigurationHandler.cs
- CommonDialog.cs
- AlphaSortedEnumConverter.cs
- SrgsGrammarCompiler.cs
- FilteredDataSetHelper.cs
- SecurityDocument.cs
- ZipIORawDataFileBlock.cs
- MenuItem.cs
- SqlGenericUtil.cs
- ToolboxDataAttribute.cs
- updateconfighost.cs
- SmtpReplyReader.cs
- CredentialSelector.cs
- SqlBinder.cs
- TraceSwitch.cs
- SmiContextFactory.cs
- SqlBulkCopyColumnMappingCollection.cs
- PropertyValueChangedEvent.cs
- ProtocolInformationWriter.cs
- WMIGenerator.cs
- Parser.cs
- HtmlSelect.cs
- CheckPair.cs
- MultipartIdentifier.cs
- GiveFeedbackEvent.cs
- OutputCacheSection.cs
- ByeMessageCD1.cs
- CqlBlock.cs
- BulletedListEventArgs.cs
- ContainerSelectorBehavior.cs
- AttributeUsageAttribute.cs
- ScrollViewer.cs
- HScrollProperties.cs
- WsdlImporter.cs
- X509SecurityToken.cs
- StyleXamlTreeBuilder.cs
- ServiceControllerDesigner.cs
- SerializationSectionGroup.cs
- EventArgs.cs
- TemporaryBitmapFile.cs
- XsdBuilder.cs
- GeometryValueSerializer.cs
- WebBrowserBase.cs
- Simplifier.cs
- DesignerForm.cs
- ProfileProvider.cs
- BamlStream.cs
- Parallel.cs
- Symbol.cs
- ConfigDefinitionUpdates.cs
- TreeNodeSelectionProcessor.cs
- TrackBar.cs
- TemplatedWizardStep.cs
- WebPartHelpVerb.cs
- PropertyPath.cs
- ListChunk.cs
- WebPartConnection.cs
- KeyInstance.cs
- Membership.cs
- SQLUtility.cs
- RootBrowserWindow.cs
- DataSvcMapFileSerializer.cs
- DesignerDataSchemaClass.cs
- GlyphInfoList.cs
- ASCIIEncoding.cs
- SqlClientWrapperSmiStream.cs
- HttpCookiesSection.cs
- XsltInput.cs
- DataRowComparer.cs
- LockRenewalTask.cs
- SelectionEditor.cs
- RegisteredScript.cs
- DataGridViewButtonCell.cs
- BamlReader.cs
- NonParentingControl.cs
- ExpandableObjectConverter.cs
- CopyAction.cs
- DesignerValidatorAdapter.cs
- SubtreeProcessor.cs
- FixedTextBuilder.cs
- SchemaCreator.cs
- BindingNavigator.cs
- WindowInteractionStateTracker.cs
- MulticastDelegate.cs
- SchemaElement.cs
- TextTreeText.cs
- PeerApplication.cs
- uribuilder.cs
- WebPartEditorOkVerb.cs
- FixedDocument.cs
- ControlCollection.cs