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
- smtpconnection.cs
- Opcode.cs
- TextServicesManager.cs
- TypeConverterHelper.cs
- SystemFonts.cs
- DispatcherExceptionFilterEventArgs.cs
- RoutedUICommand.cs
- NavigationWindow.cs
- MethodBody.cs
- ExcCanonicalXml.cs
- SourceFilter.cs
- TableLayoutPanel.cs
- TimeSpanValidator.cs
- PeerNameRecordCollection.cs
- ConfigurationElementCollection.cs
- Events.cs
- ProvideValueServiceProvider.cs
- WebPartsPersonalization.cs
- XmlSchemaRedefine.cs
- PasswordTextNavigator.cs
- SizeAnimation.cs
- PropertyEmitter.cs
- CodeDelegateCreateExpression.cs
- ToolbarAUtomationPeer.cs
- IRCollection.cs
- CommonObjectSecurity.cs
- LocationUpdates.cs
- ScriptServiceAttribute.cs
- documentation.cs
- RelationshipFixer.cs
- ReferentialConstraint.cs
- DefaultBinder.cs
- FixedSOMTableCell.cs
- ViewSimplifier.cs
- OracleInfoMessageEventArgs.cs
- DataList.cs
- EntityProviderServices.cs
- ExpandSegmentCollection.cs
- SQLByteStorage.cs
- AssemblyNameProxy.cs
- RewritingProcessor.cs
- ArgumentReference.cs
- hwndwrapper.cs
- InternalTypeHelper.cs
- DatePicker.cs
- DrawingState.cs
- WindowPattern.cs
- PriorityBinding.cs
- NumericPagerField.cs
- PanelStyle.cs
- FlowLayoutPanelDesigner.cs
- XamlReaderHelper.cs
- Math.cs
- ContentType.cs
- BindingSource.cs
- HwndKeyboardInputProvider.cs
- localization.cs
- AlternateView.cs
- SqlTriggerContext.cs
- OptimizedTemplateContent.cs
- AutomationElementCollection.cs
- Misc.cs
- MethodMessage.cs
- TextHidden.cs
- uribuilder.cs
- SharedStatics.cs
- ArgIterator.cs
- OutgoingWebResponseContext.cs
- SafeNativeMethodsCLR.cs
- DbParameterHelper.cs
- ChildDocumentBlock.cs
- StorageEntitySetMapping.cs
- FixedFlowMap.cs
- Oid.cs
- TypedTableGenerator.cs
- DataColumnChangeEvent.cs
- UnsafeNativeMethods.cs
- GradientStop.cs
- WebPartMenu.cs
- DataBinder.cs
- AuditLevel.cs
- DataGridColumnsPage.cs
- CommentAction.cs
- Form.cs
- TableRow.cs
- SqlXml.cs
- WebPartEditVerb.cs
- WorkflowInstanceExtensionProvider.cs
- ProviderException.cs
- DataGridViewCellConverter.cs
- RecognizerInfo.cs
- LassoHelper.cs
- ZipIOFileItemStream.cs
- SecurityKeyIdentifier.cs
- TextEffect.cs
- ThemeInfoAttribute.cs
- WebPartVerbsEventArgs.cs
- DataError.cs
- DataGridSortingEventArgs.cs
- BaseDataList.cs