Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DBConnection.cs
- ErrorFormatterPage.cs
- FileLevelControlBuilderAttribute.cs
- GraphicsState.cs
- ListenerSessionConnectionReader.cs
- CollectionViewGroupRoot.cs
- SqlNotificationRequest.cs
- HotSpot.cs
- ServiceContractAttribute.cs
- VirtualPathProvider.cs
- AttributeCollection.cs
- WrappedReader.cs
- Calendar.cs
- HtmlElement.cs
- Matrix3DConverter.cs
- ConfigurationLocationCollection.cs
- Cursors.cs
- VisualStyleElement.cs
- TextServicesHost.cs
- ComplexPropertyEntry.cs
- MdiWindowListItemConverter.cs
- SHA512Managed.cs
- _SecureChannel.cs
- SQLMembershipProvider.cs
- ParseChildrenAsPropertiesAttribute.cs
- UserControlBuildProvider.cs
- GeneralTransformGroup.cs
- SynchronizationContextHelper.cs
- SafeViewOfFileHandle.cs
- XpsViewerException.cs
- Wildcard.cs
- ServerValidateEventArgs.cs
- GeneralTransform2DTo3D.cs
- WindowInteractionStateTracker.cs
- DataGridViewRowsRemovedEventArgs.cs
- EditorPart.cs
- TypedElement.cs
- PrintPreviewDialog.cs
- ListMarkerSourceInfo.cs
- HiddenField.cs
- XmlAttributeHolder.cs
- DataRowChangeEvent.cs
- IntegerValidator.cs
- IgnoreFlushAndCloseStream.cs
- XPathSelfQuery.cs
- VectorCollectionConverter.cs
- StringUtil.cs
- HwndSourceParameters.cs
- TaskFileService.cs
- sqlpipe.cs
- AppSettingsExpressionBuilder.cs
- CodeDelegateCreateExpression.cs
- ReadOnlyCollectionBuilder.cs
- OperationFormatUse.cs
- RowBinding.cs
- CipherData.cs
- ListBoxItemAutomationPeer.cs
- WebPartZoneCollection.cs
- DataBoundControlActionList.cs
- ServiceOperationInvoker.cs
- SubMenuStyle.cs
- DiscriminatorMap.cs
- SafeLibraryHandle.cs
- DataObjectSettingDataEventArgs.cs
- HttpDebugHandler.cs
- ExeConfigurationFileMap.cs
- WebPartEditorOkVerb.cs
- XmlAttribute.cs
- IgnoreFileBuildProvider.cs
- WebPartDisplayModeCollection.cs
- AttributeCollection.cs
- DocumentGridPage.cs
- PartManifestEntry.cs
- BitmapSourceSafeMILHandle.cs
- ProfileGroupSettingsCollection.cs
- DocumentSequence.cs
- ToolStripSeparatorRenderEventArgs.cs
- OrderedDictionary.cs
- ConstraintEnumerator.cs
- Composition.cs
- wgx_exports.cs
- SecurityKeyUsage.cs
- HttpHeaderCollection.cs
- InputLangChangeRequestEvent.cs
- Overlapped.cs
- LockedActivityGlyph.cs
- DesignTimeTemplateParser.cs
- ClientConvert.cs
- SystemUdpStatistics.cs
- ResourceContainerWrapper.cs
- OneToOneMappingSerializer.cs
- ContentPlaceHolderDesigner.cs
- IssuedTokenServiceElement.cs
- ProxyWebPartManager.cs
- FontSizeConverter.cs
- ListView.cs
- Rotation3DAnimationUsingKeyFrames.cs
- XdrBuilder.cs
- HtmlEmptyTagControlBuilder.cs
- AssemblyResourceLoader.cs