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
- CounterCreationDataCollection.cs
- CacheManager.cs
- KoreanLunisolarCalendar.cs
- MediaContextNotificationWindow.cs
- Substitution.cs
- StandardCommands.cs
- Message.cs
- assertwrapper.cs
- COM2ExtendedUITypeEditor.cs
- DelimitedListTraceListener.cs
- SystemEvents.cs
- ISO2022Encoding.cs
- DeflateStream.cs
- Deserializer.cs
- ServiceBuildProvider.cs
- FormsAuthenticationUserCollection.cs
- UnicastIPAddressInformationCollection.cs
- TextBoxAutomationPeer.cs
- StylusShape.cs
- EndpointAddressMessageFilterTable.cs
- ToolStripHighContrastRenderer.cs
- RuleValidation.cs
- EncodingDataItem.cs
- XmlEventCache.cs
- SoapSchemaExporter.cs
- httpapplicationstate.cs
- XmlDataDocument.cs
- SuppressIldasmAttribute.cs
- NameValueFileSectionHandler.cs
- LateBoundBitmapDecoder.cs
- HttpListenerException.cs
- PasswordPropertyTextAttribute.cs
- UnsettableComboBox.cs
- ObjectQueryExecutionPlan.cs
- KeySpline.cs
- XPathNavigatorReader.cs
- HtmlContainerControl.cs
- ReflectEventDescriptor.cs
- HMAC.cs
- SecurityManager.cs
- ServicePoint.cs
- serverconfig.cs
- CryptoHelper.cs
- FontEmbeddingManager.cs
- InitialServerConnectionReader.cs
- MailDefinition.cs
- ButtonBase.cs
- LockedHandleGlyph.cs
- MenuAutomationPeer.cs
- ProfileGroupSettings.cs
- DrawingBrush.cs
- ValidatorCollection.cs
- SapiRecognizer.cs
- SqlProvider.cs
- SQLDateTime.cs
- ProxyAttribute.cs
- ResolveResponse.cs
- EventListenerClientSide.cs
- XmlObjectSerializerReadContextComplex.cs
- SqlStream.cs
- StopStoryboard.cs
- MemberJoinTreeNode.cs
- AnnotationMap.cs
- StringFormat.cs
- FileSystemEventArgs.cs
- SemanticKeyElement.cs
- XsltFunctions.cs
- _SslState.cs
- Msec.cs
- AutoGeneratedFieldProperties.cs
- RSAPKCS1SignatureDeformatter.cs
- SortDescription.cs
- _ConnectOverlappedAsyncResult.cs
- TextWriterTraceListener.cs
- GroupBox.cs
- SoapIgnoreAttribute.cs
- RegistryExceptionHelper.cs
- GenericXmlSecurityTokenAuthenticator.cs
- HttpClientProtocol.cs
- WebPartRestoreVerb.cs
- HasCopySemanticsAttribute.cs
- DrawingAttributesDefaultValueFactory.cs
- Token.cs
- followingsibling.cs
- CellParaClient.cs
- SrgsElementFactory.cs
- AnonymousIdentificationModule.cs
- PatternMatcher.cs
- XPathQueryGenerator.cs
- listviewsubitemcollectioneditor.cs
- CryptoKeySecurity.cs
- BinaryConverter.cs
- XPathNode.cs
- ActivityExecutorSurrogate.cs
- MulticastOption.cs
- ValidationContext.cs
- DataBindingHandlerAttribute.cs
- OperatingSystem.cs
- filewebresponse.cs
- PropertyEmitterBase.cs