Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }/// 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
- DbSetClause.cs
- WmlLiteralTextAdapter.cs
- ContextItemManager.cs
- CellRelation.cs
- BaseDataBoundControl.cs
- TimeIntervalCollection.cs
- PropertyEmitter.cs
- InvokeProviderWrapper.cs
- DataGridViewCheckBoxColumn.cs
- SmtpFailedRecipientException.cs
- ToolStripDropDown.cs
- WebSysDescriptionAttribute.cs
- FrameworkTemplate.cs
- NetStream.cs
- RMPublishingDialog.cs
- ArrayEditor.cs
- FunctionGenerator.cs
- SQLByteStorage.cs
- XmlSchemaCompilationSettings.cs
- CursorConverter.cs
- SecurityTokenSerializer.cs
- XmlDataCollection.cs
- IQueryable.cs
- InkPresenter.cs
- XmlDataSourceDesigner.cs
- UniqueConstraint.cs
- ListBindingConverter.cs
- COAUTHINFO.cs
- DataRowExtensions.cs
- EventMappingSettingsCollection.cs
- PenLineCapValidation.cs
- WmlValidationSummaryAdapter.cs
- StringStorage.cs
- XmlSchemaSimpleContentRestriction.cs
- SuppressMergeCheckAttribute.cs
- DynamicContractTypeBuilder.cs
- Hyperlink.cs
- DataGridViewBindingCompleteEventArgs.cs
- Pair.cs
- XMLUtil.cs
- WindowsContainer.cs
- PropertyPanel.cs
- DataGridViewCellFormattingEventArgs.cs
- Window.cs
- SystemKeyConverter.cs
- BinHexEncoding.cs
- InvalidCastException.cs
- Descriptor.cs
- PersonalizationEntry.cs
- MessageEnumerator.cs
- _SpnDictionary.cs
- FullTextState.cs
- PathFigureCollectionConverter.cs
- Model3D.cs
- figurelengthconverter.cs
- DataBoundControlParameterTarget.cs
- BinaryNegotiation.cs
- ListMarkerLine.cs
- XmlNamespaceManager.cs
- Faults.cs
- AlgoModule.cs
- SQLByte.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- HttpCapabilitiesSectionHandler.cs
- ValidationError.cs
- TraceSection.cs
- CredentialManagerDialog.cs
- TextRunCache.cs
- DataRowChangeEvent.cs
- CompModSwitches.cs
- Mappings.cs
- XmlQueryTypeFactory.cs
- FixedSOMGroup.cs
- PageStatePersister.cs
- DatatypeImplementation.cs
- ToolboxItemSnapLineBehavior.cs
- EventProviderWriter.cs
- PreviewPageInfo.cs
- DynamicDocumentPaginator.cs
- FixedSOMPageElement.cs
- GreenMethods.cs
- ListBoxItem.cs
- ChineseLunisolarCalendar.cs
- PackageRelationship.cs
- PreDigestedSignedInfo.cs
- TrackBarRenderer.cs
- UnsafeNativeMethodsCLR.cs
- InternalResources.cs
- HMACSHA1.cs
- LinkedList.cs
- TextEndOfLine.cs
- ArraySubsetEnumerator.cs
- InvalidPrinterException.cs
- AspNetSynchronizationContext.cs
- CardSpacePolicyElement.cs
- DropShadowEffect.cs
- ErrorFormatter.cs
- WhitespaceRuleLookup.cs
- BooleanKeyFrameCollection.cs
- SequentialActivityDesigner.cs