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
- COAUTHIDENTITY.cs
- MonthChangedEventArgs.cs
- HostProtectionPermission.cs
- DNS.cs
- GraphicsContext.cs
- XmlDictionaryWriter.cs
- Misc.cs
- BulletChrome.cs
- ContentType.cs
- XPathNode.cs
- ByteAnimation.cs
- DesignTimeTemplateParser.cs
- ProfileSettingsCollection.cs
- GridViewHeaderRowPresenter.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- securitycriticaldata.cs
- HtmlInputSubmit.cs
- ProxyHwnd.cs
- MenuItemBindingCollection.cs
- QueryCacheKey.cs
- Int32CollectionConverter.cs
- WebRequest.cs
- SoapSchemaMember.cs
- ParentQuery.cs
- Validator.cs
- FreezableOperations.cs
- HttpRequestCacheValidator.cs
- BookmarkEventArgs.cs
- ADMembershipUser.cs
- ArgumentsParser.cs
- PageClientProxyGenerator.cs
- PageContentAsyncResult.cs
- NullReferenceException.cs
- ProcessHostFactoryHelper.cs
- CodeBlockBuilder.cs
- DBConnection.cs
- RectValueSerializer.cs
- ServiceHostFactory.cs
- CommandField.cs
- BookmarkList.cs
- ConfigDefinitionUpdates.cs
- CalendarDataBindingHandler.cs
- VisualStyleTypesAndProperties.cs
- PenLineJoinValidation.cs
- ContainerFilterService.cs
- ImageConverter.cs
- ReflectionHelper.cs
- ReadOnlyKeyedCollection.cs
- DrawingAttributesDefaultValueFactory.cs
- NullableBoolConverter.cs
- HttpPostClientProtocol.cs
- xmlsaver.cs
- EntityContainer.cs
- XmlSchemaGroupRef.cs
- Int32AnimationUsingKeyFrames.cs
- ContextStack.cs
- DataGridTextBoxColumn.cs
- TracedNativeMethods.cs
- TablePattern.cs
- Paragraph.cs
- ConnectionManagementElementCollection.cs
- Calendar.cs
- LockCookie.cs
- BStrWrapper.cs
- HwndSourceParameters.cs
- Polygon.cs
- ToolStripSplitStackLayout.cs
- PixelFormat.cs
- WindowCollection.cs
- LongTypeConverter.cs
- IPCCacheManager.cs
- LogArchiveSnapshot.cs
- PrePrepareMethodAttribute.cs
- CompilerParameters.cs
- DSACryptoServiceProvider.cs
- FilteredXmlReader.cs
- HtmlInputButton.cs
- TextBoxBase.cs
- CallbackValidatorAttribute.cs
- WindowPattern.cs
- BinHexEncoder.cs
- WindowsRichEdit.cs
- QilXmlWriter.cs
- DependentTransaction.cs
- SharedDp.cs
- TrackingDataItemValue.cs
- EventMappingSettings.cs
- DataRelationCollection.cs
- DrawingVisual.cs
- HttpRequestCacheValidator.cs
- AutomationTextAttribute.cs
- QueryCacheManager.cs
- PrinterUnitConvert.cs
- TextAdaptor.cs
- DataControlButton.cs
- MetadataItemEmitter.cs
- InheritanceContextChangedEventManager.cs
- BinaryEditor.cs
- DirectoryNotFoundException.cs
- DataGridViewAccessibleObject.cs