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
- InputLanguageProfileNotifySink.cs
- DateTimeFormatInfoScanner.cs
- ModelPerspective.cs
- RSAOAEPKeyExchangeFormatter.cs
- StructuredCompositeActivityDesigner.cs
- HttpRequestWrapper.cs
- ContextCorrelationInitializer.cs
- IndependentAnimationStorage.cs
- IsolatedStorage.cs
- SynchronizedDispatch.cs
- NamespaceDecl.cs
- CultureTableRecord.cs
- DesignerActionGlyph.cs
- Validator.cs
- DataSourceIDConverter.cs
- DispatcherExceptionFilterEventArgs.cs
- HttpCacheVary.cs
- BindableTemplateBuilder.cs
- KeyedCollection.cs
- Vector3DKeyFrameCollection.cs
- SqlTypesSchemaImporter.cs
- MarshalDirectiveException.cs
- FixedSOMPage.cs
- ZipPackagePart.cs
- ModelTreeEnumerator.cs
- WebReference.cs
- _Semaphore.cs
- AbstractExpressions.cs
- TrackingExtract.cs
- RelationHandler.cs
- TableItemPattern.cs
- MouseActionValueSerializer.cs
- AccessViolationException.cs
- EntityDataSourceColumn.cs
- HttpListenerResponse.cs
- WebServiceClientProxyGenerator.cs
- PropertyKey.cs
- ValuePattern.cs
- ConfigurationStrings.cs
- EntityCommandExecutionException.cs
- XsltConvert.cs
- RoutedCommand.cs
- AdPostCacheSubstitution.cs
- ServiceHostFactory.cs
- EdmFunctions.cs
- SharedPerformanceCounter.cs
- DataObjectCopyingEventArgs.cs
- EntityClassGenerator.cs
- ISAPIApplicationHost.cs
- LineInfo.cs
- DefinitionBase.cs
- ToolStripLocationCancelEventArgs.cs
- TreeView.cs
- WebServiceBindingAttribute.cs
- RightsManagementEncryptedStream.cs
- ReadOnlyHierarchicalDataSourceView.cs
- UpdateExpressionVisitor.cs
- KeyConstraint.cs
- PreloadHost.cs
- CodePageUtils.cs
- Int64AnimationBase.cs
- SHA512Managed.cs
- PeerInvitationResponse.cs
- DomainUpDown.cs
- CalloutQueueItem.cs
- HostProtectionPermission.cs
- MailSettingsSection.cs
- StreamProxy.cs
- DBConnectionString.cs
- ReflectEventDescriptor.cs
- DoubleLinkListEnumerator.cs
- LoginName.cs
- DisplayMemberTemplateSelector.cs
- TaiwanCalendar.cs
- SemaphoreSecurity.cs
- BindingCompleteEventArgs.cs
- StringFreezingAttribute.cs
- ScriptReferenceEventArgs.cs
- FixedTextContainer.cs
- EFAssociationProvider.cs
- HttpResponse.cs
- MetadataCacheItem.cs
- Part.cs
- HtmlButton.cs
- XamlDesignerSerializationManager.cs
- BooleanConverter.cs
- HtmlWindowCollection.cs
- Exception.cs
- WindowsImpersonationContext.cs
- KeyboardEventArgs.cs
- ApplyImportsAction.cs
- Accessors.cs
- TreeViewCancelEvent.cs
- FileSystemEnumerable.cs
- EnumerableRowCollection.cs
- CompiledRegexRunner.cs
- ActivityExecutionContext.cs
- ServiceElement.cs
- PtsPage.cs
- ItemTypeToolStripMenuItem.cs