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
- DBDataPermission.cs
- BitmapFrameEncode.cs
- PassportAuthentication.cs
- NegotiateStream.cs
- SubstitutionList.cs
- ConsumerConnectionPointCollection.cs
- RouteParametersHelper.cs
- XMLSchema.cs
- QueryCursorEventArgs.cs
- DbDataAdapter.cs
- BulletChrome.cs
- DrawingVisualDrawingContext.cs
- SignerInfo.cs
- Regex.cs
- CompressEmulationStream.cs
- HttpHandlersSection.cs
- Grammar.cs
- InProcStateClientManager.cs
- CmsUtils.cs
- TemplateApplicationHelper.cs
- SystemColorTracker.cs
- IndentedTextWriter.cs
- Message.cs
- StructuredTypeEmitter.cs
- ListViewCommandEventArgs.cs
- BoolLiteral.cs
- OneOfConst.cs
- SqlExpander.cs
- StringAnimationUsingKeyFrames.cs
- ChineseLunisolarCalendar.cs
- Keyboard.cs
- MemberCollection.cs
- EnumBuilder.cs
- TableCell.cs
- SynchronizedMessageSource.cs
- AnimationClock.cs
- WebBaseEventKeyComparer.cs
- Viewport2DVisual3D.cs
- COM2Enum.cs
- DbModificationCommandTree.cs
- TerminatorSinks.cs
- xmlfixedPageInfo.cs
- DataException.cs
- GlyphRunDrawing.cs
- TextParagraph.cs
- CqlQuery.cs
- DataGridViewCellCancelEventArgs.cs
- ResourceIDHelper.cs
- QueryableDataSourceView.cs
- FullTextLine.cs
- XsltContext.cs
- CollectionChangeEventArgs.cs
- PrimitiveType.cs
- PropertyGridDesigner.cs
- PhonemeConverter.cs
- QuaternionValueSerializer.cs
- WarningException.cs
- DrawingVisual.cs
- CodeTypeParameterCollection.cs
- ArrayTypeMismatchException.cs
- ISFClipboardData.cs
- DesignTimeValidationFeature.cs
- ManagedWndProcTracker.cs
- UriParserTemplates.cs
- GeneralTransform3DCollection.cs
- SqlReorderer.cs
- CalendarDesigner.cs
- CollectionTypeElement.cs
- InstanceDescriptor.cs
- ConfigUtil.cs
- HttpRawResponse.cs
- DynamicDataExtensions.cs
- OleDbErrorCollection.cs
- ListDictionary.cs
- baseaxisquery.cs
- Executor.cs
- CompressionTransform.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- OutputCacheSettingsSection.cs
- FrameworkRichTextComposition.cs
- HtmlInputText.cs
- assertwrapper.cs
- IdnElement.cs
- StringSource.cs
- ListView.cs
- ManagedIStream.cs
- WebCategoryAttribute.cs
- DataGridViewHitTestInfo.cs
- SizeAnimationBase.cs
- RenderOptions.cs
- DefaultValidator.cs
- ValidatingPropertiesEventArgs.cs
- ObjectListTitleAttribute.cs
- VisualStyleRenderer.cs
- BuilderInfo.cs
- ScrollBar.cs
- VisualStyleInformation.cs
- EventHandlersStore.cs
- RuntimeCompatibilityAttribute.cs
- OrderPreservingPipeliningMergeHelper.cs