Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DesignerMetadata.cs
- XmlSchemaSearchPattern.cs
- HttpConfigurationSystem.cs
- SettingsAttributes.cs
- SecurityRuntime.cs
- WebControl.cs
- WebConfigurationFileMap.cs
- BooleanStorage.cs
- DebugInfoGenerator.cs
- OutputWindow.cs
- SystemIPGlobalProperties.cs
- parserscommon.cs
- ExpressionSelection.cs
- IConvertible.cs
- ByteStreamMessageUtility.cs
- OracleEncoding.cs
- DataObjectCopyingEventArgs.cs
- WebPartAuthorizationEventArgs.cs
- UdpDiscoveryEndpointProvider.cs
- Constants.cs
- StandardTransformFactory.cs
- X509SubjectKeyIdentifierClause.cs
- BitmapCodecInfo.cs
- SignatureDescription.cs
- SortFieldComparer.cs
- XmlSchemaImporter.cs
- SubtreeProcessor.cs
- DataConnectionHelper.cs
- PixelFormats.cs
- NativeBuffer.cs
- XmlIterators.cs
- ImageProxy.cs
- TargetConverter.cs
- XPathDocument.cs
- EncoderFallback.cs
- RemoteAsymmetricSignatureFormatter.cs
- returneventsaver.cs
- Rule.cs
- Function.cs
- GlobalItem.cs
- InputDevice.cs
- ipaddressinformationcollection.cs
- DataControlFieldCollection.cs
- GridViewHeaderRowPresenter.cs
- OleDbInfoMessageEvent.cs
- DataTableNewRowEvent.cs
- UnsafeNativeMethodsPenimc.cs
- WebSysDisplayNameAttribute.cs
- PageThemeBuildProvider.cs
- InternalConfigEventArgs.cs
- StandardBindingImporter.cs
- FrameworkPropertyMetadata.cs
- BeginStoryboard.cs
- MsmqIntegrationChannelFactory.cs
- WindowsImpersonationContext.cs
- DetailsViewPagerRow.cs
- DataSet.cs
- DataGridViewCellLinkedList.cs
- DetailsViewDesigner.cs
- GridViewRowCollection.cs
- StringCollectionEditor.cs
- ItemMap.cs
- ControlPaint.cs
- LayoutInformation.cs
- CompilerScopeManager.cs
- InstanceStore.cs
- CodeComment.cs
- XmlSerializableWriter.cs
- DocumentApplication.cs
- ActivityDelegate.cs
- AffineTransform3D.cs
- MaskedTextBoxDesigner.cs
- ConfigXmlElement.cs
- PositiveTimeSpanValidatorAttribute.cs
- ScrollChrome.cs
- CopyOnWriteList.cs
- WorkflowServiceAttributesTypeConverter.cs
- ToggleProviderWrapper.cs
- ErrorEventArgs.cs
- SectionVisual.cs
- LambdaCompiler.Generated.cs
- LocalIdKeyIdentifierClause.cs
- Attribute.cs
- LazyTextWriterCreator.cs
- AdjustableArrowCap.cs
- ForwardPositionQuery.cs
- ClientScriptManager.cs
- RemoteWebConfigurationHostStream.cs
- ActivationServices.cs
- StringDictionary.cs
- SystemIcmpV6Statistics.cs
- WinEventWrap.cs
- CngProperty.cs
- InputBindingCollection.cs
- MemoryStream.cs
- GridViewPageEventArgs.cs
- KnownTypesProvider.cs
- DesignerLinkAdapter.cs
- BasePropertyDescriptor.cs
- Executor.cs