Code:
/ FX-1434 / FX-1434 / 1.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
- EntityConnectionStringBuilder.cs
- SqlClientWrapperSmiStreamChars.cs
- ThreadAttributes.cs
- XmlComment.cs
- IPPacketInformation.cs
- CompiledQueryCacheKey.cs
- WebPartsPersonalizationAuthorization.cs
- WindowsListViewGroupHelper.cs
- EmptyCollection.cs
- FeatureSupport.cs
- GridSplitter.cs
- HeaderCollection.cs
- FontWeightConverter.cs
- StateBag.cs
- CodeIterationStatement.cs
- MessageBox.cs
- SmtpReplyReader.cs
- PackageFilter.cs
- ParenExpr.cs
- JournalEntry.cs
- NavigationWindowAutomationPeer.cs
- StylusPointProperty.cs
- PeerFlooder.cs
- CorePropertiesFilter.cs
- PointAnimationUsingPath.cs
- ToolStripItemCollection.cs
- adornercollection.cs
- TableChangeProcessor.cs
- UTF7Encoding.cs
- UndirectedGraph.cs
- Manipulation.cs
- GenericUriParser.cs
- SQLSingleStorage.cs
- entityreference_tresulttype.cs
- AspProxy.cs
- BufferedReadStream.cs
- XmlSchemaAnnotated.cs
- VisualBasicSettingsHandler.cs
- AdRotator.cs
- ConnectionInterfaceCollection.cs
- ADMembershipUser.cs
- SafeRightsManagementHandle.cs
- WindowsGraphics.cs
- ImageAnimator.cs
- BitmapScalingModeValidation.cs
- KeyboardDevice.cs
- JsonClassDataContract.cs
- MiniCustomAttributeInfo.cs
- Logging.cs
- LogicalTreeHelper.cs
- ToolStripItemDataObject.cs
- ReservationNotFoundException.cs
- TableLayoutSettings.cs
- Storyboard.cs
- DataBindEngine.cs
- IPCCacheManager.cs
- ExcCanonicalXml.cs
- SimpleMailWebEventProvider.cs
- ObjectPropertyMapping.cs
- WithParamAction.cs
- PatternMatchRules.cs
- PropertyPathWorker.cs
- HttpClientCertificate.cs
- ProcessingInstructionAction.cs
- MenuStrip.cs
- ReadOnlyDictionary.cs
- IIS7WorkerRequest.cs
- DecimalStorage.cs
- TextElementEnumerator.cs
- XmlKeywords.cs
- CodeAttributeArgumentCollection.cs
- Activator.cs
- ToolStripSplitButton.cs
- WindowsStatusBar.cs
- PackWebRequestFactory.cs
- SqlProcedureAttribute.cs
- SafeHandles.cs
- WebEvents.cs
- Matrix3DValueSerializer.cs
- SessionParameter.cs
- Vector3DKeyFrameCollection.cs
- AlphabeticalEnumConverter.cs
- ProfileInfo.cs
- ComPersistableTypeElementCollection.cs
- _NegoStream.cs
- InvalidPrinterException.cs
- Help.cs
- ReadOnlyMetadataCollection.cs
- CheckBoxFlatAdapter.cs
- XPathScanner.cs
- TextMarkerSource.cs
- ProcessHostMapPath.cs
- TypeConverterAttribute.cs
- Cursor.cs
- MetafileHeader.cs
- HttpApplicationFactory.cs
- Composition.cs
- KeyInstance.cs
- TextRenderer.cs
- _KerberosClient.cs