Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets the name of the method to invoke. /// ///// 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// 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
- TdsParserStateObject.cs
- GeneralTransform3DCollection.cs
- WebBrowserHelper.cs
- ResourceReferenceExpression.cs
- UserPreferenceChangedEventArgs.cs
- Token.cs
- StrokeIntersection.cs
- CompilerLocalReference.cs
- ControlParameter.cs
- RelationshipNavigation.cs
- WebBrowserHelper.cs
- SystemIcons.cs
- SQLRoleProvider.cs
- XmlTypeAttribute.cs
- KnownBoxes.cs
- SafeProcessHandle.cs
- TemplateField.cs
- SystemUdpStatistics.cs
- SimpleWebHandlerParser.cs
- LightweightEntityWrapper.cs
- ProvideValueServiceProvider.cs
- _HeaderInfo.cs
- TextTreeRootNode.cs
- PassportAuthentication.cs
- DragDropHelper.cs
- ComponentRenameEvent.cs
- ObjectNavigationPropertyMapping.cs
- CustomError.cs
- PenThreadWorker.cs
- ItemsPresenter.cs
- ImportedPolicyConversionContext.cs
- CodeExporter.cs
- Evidence.cs
- ThreadLocal.cs
- BrowserCapabilitiesFactory.cs
- StorageComplexPropertyMapping.cs
- ApplicationActivator.cs
- DispatcherObject.cs
- Literal.cs
- TimeSpan.cs
- versioninfo.cs
- QilList.cs
- DataGridViewCellParsingEventArgs.cs
- FrameworkContentElement.cs
- UnknownWrapper.cs
- TrackingRecord.cs
- DependencyObjectProvider.cs
- SetStoryboardSpeedRatio.cs
- LogEntryHeaderv1Deserializer.cs
- XslNumber.cs
- SdlChannelSink.cs
- MultipartContentParser.cs
- _OverlappedAsyncResult.cs
- SoapTypeAttribute.cs
- ScrollChrome.cs
- PrivilegeNotHeldException.cs
- EntityDataSourceDesigner.cs
- BitStack.cs
- Int32Rect.cs
- XmlDataSourceNodeDescriptor.cs
- DebugView.cs
- BlobPersonalizationState.cs
- KeySpline.cs
- EventDescriptorCollection.cs
- ClientTarget.cs
- BaseTemplateParser.cs
- DoubleLinkListEnumerator.cs
- DataViewManagerListItemTypeDescriptor.cs
- CharacterMetrics.cs
- StreamingContext.cs
- AspCompat.cs
- XmlDictionaryWriter.cs
- BlurBitmapEffect.cs
- StyleModeStack.cs
- LineServicesRun.cs
- ObjectDataSourceMethodEditor.cs
- TextElementAutomationPeer.cs
- ResourcePool.cs
- XslAst.cs
- SelfIssuedAuthProofToken.cs
- ProxyAttribute.cs
- TimeSpanMinutesConverter.cs
- SmtpClient.cs
- TransactionBridgeSection.cs
- _AcceptOverlappedAsyncResult.cs
- CodeArgumentReferenceExpression.cs
- NavigationFailedEventArgs.cs
- LinkDescriptor.cs
- XXXInfos.cs
- Encoder.cs
- BaseParser.cs
- OdbcParameterCollection.cs
- SoapInteropTypes.cs
- CreateUserWizard.cs
- Addressing.cs
- ContainerSelectorGlyph.cs
- ControlPersister.cs
- OwnerDrawPropertyBag.cs
- UserControl.cs
- HighlightComponent.cs