Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / codemethodreferenceexpression.cs / 1305376 / codemethodreferenceexpression.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; using System.Runtime.Serialization; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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. /// ///// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; using System.Runtime.Serialization; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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
- DbParameterCollectionHelper.cs
- PrinterResolution.cs
- MediaEntryAttribute.cs
- ErrorEventArgs.cs
- SqlTriggerContext.cs
- DataBoundControlAdapter.cs
- XhtmlTextWriter.cs
- FieldAccessException.cs
- ClientSession.cs
- TerminatorSinks.cs
- SqlDataAdapter.cs
- PixelShader.cs
- _ConnectOverlappedAsyncResult.cs
- SafeViewOfFileHandle.cs
- ResourceReader.cs
- ProcessStartInfo.cs
- XmlNodeChangedEventManager.cs
- FileDialog.cs
- PageTheme.cs
- PrintPreviewDialog.cs
- shaperfactoryquerycacheentry.cs
- WindowsStatic.cs
- DateTimeUtil.cs
- StylusPointDescription.cs
- WindowsFont.cs
- CryptoConfig.cs
- CompilationRelaxations.cs
- RelationshipSet.cs
- TitleStyle.cs
- ObjectHandle.cs
- HttpHandlersSection.cs
- FormViewCommandEventArgs.cs
- CompositeFontInfo.cs
- ImpersonationContext.cs
- AmbientEnvironment.cs
- LinqDataSourceView.cs
- connectionpool.cs
- MouseGestureValueSerializer.cs
- ParameterEditorUserControl.cs
- JsonUriDataContract.cs
- FieldMetadata.cs
- ErrorFormatterPage.cs
- DropShadowBitmapEffect.cs
- WebInvokeAttribute.cs
- AutomationElement.cs
- ManagedCodeMarkers.cs
- SecureEnvironment.cs
- PerformanceCountersElement.cs
- FamilyMapCollection.cs
- FamilyMapCollection.cs
- IChannel.cs
- TypeForwardedFromAttribute.cs
- StorageTypeMapping.cs
- RequestResizeEvent.cs
- CodeCommentStatementCollection.cs
- CodeAccessPermission.cs
- QueryableFilterUserControl.cs
- SequentialOutput.cs
- QueryOperatorEnumerator.cs
- KnownTypesProvider.cs
- DeclarationUpdate.cs
- ParseChildrenAsPropertiesAttribute.cs
- InternalCache.cs
- BindingList.cs
- FakeModelPropertyImpl.cs
- TreeNodeStyleCollection.cs
- DBConcurrencyException.cs
- ReadOnlyCollectionBuilder.cs
- SyndicationFeed.cs
- GroupItem.cs
- ExtentJoinTreeNode.cs
- RuntimeConfig.cs
- DecoderReplacementFallback.cs
- ObjectListDataBindEventArgs.cs
- MultiTrigger.cs
- ResolveCriteriaApril2005.cs
- Persist.cs
- HandleCollector.cs
- OlePropertyStructs.cs
- TypeConverterAttribute.cs
- ItemContainerGenerator.cs
- HtmlAnchor.cs
- SecurityTokenProvider.cs
- BehaviorEditorPart.cs
- UserThread.cs
- AudioSignalProblemOccurredEventArgs.cs
- MulticastOption.cs
- TextSegment.cs
- SymDocumentType.cs
- Subtree.cs
- LinqToSqlWrapper.cs
- XmlSchemaDatatype.cs
- CmsUtils.cs
- MetadataArtifactLoaderCompositeResource.cs
- TypeTypeConverter.cs
- XmlCharCheckingReader.cs
- ToolBar.cs
- TypeDescriptionProviderAttribute.cs
- DurationConverter.cs
- JsonXmlDataContract.cs