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
- RootBuilder.cs
- DrawingState.cs
- BooleanStorage.cs
- ConstructorBuilder.cs
- SizeConverter.cs
- SmtpReplyReaderFactory.cs
- SmtpAuthenticationManager.cs
- SqlUdtInfo.cs
- ProviderConnectionPoint.cs
- DataObjectMethodAttribute.cs
- SamlSecurityTokenAuthenticator.cs
- SecurityUtils.cs
- EventListenerClientSide.cs
- NativeMethods.cs
- SingleObjectCollection.cs
- ThreadAbortException.cs
- ConfigurationValue.cs
- CodeTypeParameterCollection.cs
- FontUnitConverter.cs
- GPRECTF.cs
- TabletDevice.cs
- LoopExpression.cs
- Pen.cs
- TraceEventCache.cs
- SelectionWordBreaker.cs
- StatusBarPanel.cs
- PasswordTextNavigator.cs
- PassportPrincipal.cs
- UnconditionalPolicy.cs
- OpenTypeLayoutCache.cs
- Int32Storage.cs
- SeparatorAutomationPeer.cs
- GiveFeedbackEventArgs.cs
- HtmlInputFile.cs
- IProducerConsumerCollection.cs
- ValidationEventArgs.cs
- baseaxisquery.cs
- XslCompiledTransform.cs
- CryptoApi.cs
- EUCJPEncoding.cs
- _StreamFramer.cs
- TextElementEnumerator.cs
- Axis.cs
- LineSegment.cs
- FixedSOMFixedBlock.cs
- TopClause.cs
- SqlDataSourceStatusEventArgs.cs
- XmlSchemaObject.cs
- NullReferenceException.cs
- WindowShowOrOpenTracker.cs
- TreeNodeBinding.cs
- typedescriptorpermissionattribute.cs
- XmlKeywords.cs
- RbTree.cs
- InternalDispatchObject.cs
- Annotation.cs
- DefaultMemberAttribute.cs
- FrameworkContentElement.cs
- LateBoundChannelParameterCollection.cs
- Mouse.cs
- Floater.cs
- XmlSchemaSimpleContentRestriction.cs
- RangeValuePattern.cs
- XmlQualifiedName.cs
- RoleGroupCollection.cs
- BaseCollection.cs
- FixedDocumentPaginator.cs
- TypeBuilder.cs
- ListViewUpdateEventArgs.cs
- TdsRecordBufferSetter.cs
- XpsViewerException.cs
- HttpException.cs
- FacetDescription.cs
- UpDownBase.cs
- MaskedTextBox.cs
- GeneralTransform3DTo2D.cs
- Type.cs
- SemanticTag.cs
- ListViewDeletedEventArgs.cs
- Win32Exception.cs
- ZipQueryOperator.cs
- CompiledQuery.cs
- ResourceDictionary.cs
- X509CertificateTrustedIssuerElement.cs
- EntitySetBase.cs
- NumberSubstitution.cs
- InstrumentationTracker.cs
- RNGCryptoServiceProvider.cs
- SqlWebEventProvider.cs
- Hash.cs
- TextContainer.cs
- SemaphoreFullException.cs
- CheckBox.cs
- DrawListViewSubItemEventArgs.cs
- RoleServiceManager.cs
- PageParserFilter.cs
- Base64Encoder.cs
- CqlErrorHelper.cs
- DirectionalLight.cs
- CodeLinePragma.cs