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
- GlyphingCache.cs
- CommandID.cs
- HttpException.cs
- GridViewColumnCollectionChangedEventArgs.cs
- SettingsContext.cs
- ExpressionPrefixAttribute.cs
- TableRowGroup.cs
- ThreadStateException.cs
- ModelItemExtensions.cs
- LinqDataSourceSelectEventArgs.cs
- MediaTimeline.cs
- CodeMemberProperty.cs
- DesignerForm.cs
- DispatcherHooks.cs
- HandlerFactoryCache.cs
- ModelChangedEventArgsImpl.cs
- ThumbAutomationPeer.cs
- DataObjectSettingDataEventArgs.cs
- HttpConfigurationSystem.cs
- NamedElement.cs
- FunctionCommandText.cs
- Vector3DAnimation.cs
- AppendHelper.cs
- InternalMappingException.cs
- XPathChildIterator.cs
- KeyInterop.cs
- HtmlCalendarAdapter.cs
- DataException.cs
- RootDesignerSerializerAttribute.cs
- ActiveXContainer.cs
- WpfGeneratedKnownTypes.cs
- QilPatternFactory.cs
- PresentationTraceSources.cs
- SpeechAudioFormatInfo.cs
- ProcessStartInfo.cs
- EncodingStreamWrapper.cs
- Stacktrace.cs
- ChangePasswordDesigner.cs
- XmlSchemaComplexContentExtension.cs
- IsolationInterop.cs
- InvokeMethodActivity.cs
- FlowSwitchLink.cs
- ParamArrayAttribute.cs
- columnmapkeybuilder.cs
- ObjectDataSourceWizardForm.cs
- OdbcError.cs
- InputLanguage.cs
- QueryActivatableWorkflowsCommand.cs
- ObjectListFieldCollection.cs
- XmlTextAttribute.cs
- ParserContext.cs
- RegexCompilationInfo.cs
- ScriptDescriptor.cs
- PackageStore.cs
- WebServiceClientProxyGenerator.cs
- AnnotationDocumentPaginator.cs
- ListenerAdapterBase.cs
- BitmapCodecInfoInternal.cs
- UrlMapping.cs
- ToolboxItemCollection.cs
- Vector3D.cs
- CheckBoxPopupAdapter.cs
- MinimizableAttributeTypeConverter.cs
- CleanUpVirtualizedItemEventArgs.cs
- SearchExpression.cs
- GridViewRow.cs
- XmlAttributeCache.cs
- StylusCollection.cs
- VisualSerializer.cs
- CodeDelegateCreateExpression.cs
- DoubleCollectionConverter.cs
- ObjectSecurity.cs
- documentsequencetextpointer.cs
- LinkButton.cs
- XpsViewerException.cs
- FileReader.cs
- DataGridTableCollection.cs
- Process.cs
- XXXOnTypeBuilderInstantiation.cs
- OptionUsage.cs
- AnimationException.cs
- NullableFloatAverageAggregationOperator.cs
- EventLogPermissionEntry.cs
- OutputWindow.cs
- ControlAdapter.cs
- InlinedAggregationOperatorEnumerator.cs
- ExpressionCopier.cs
- StreamReader.cs
- DataGridBoolColumn.cs
- SecurityUtils.cs
- InputChannel.cs
- WebFaultException.cs
- DataTemplate.cs
- TopClause.cs
- TabControlAutomationPeer.cs
- VariableBinder.cs
- ManualResetEvent.cs
- FileLoadException.cs
- Transform3DCollection.cs
- CorePropertiesFilter.cs