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
- ConstructorArgumentAttribute.cs
- EdmType.cs
- Roles.cs
- SystemParameters.cs
- ConfigurationStrings.cs
- SessionEndedEventArgs.cs
- DataGridViewCellValidatingEventArgs.cs
- CodeTypeParameter.cs
- DbConnectionOptions.cs
- TypeExtension.cs
- EventBuilder.cs
- CellNormalizer.cs
- Int32KeyFrameCollection.cs
- List.cs
- ResourceAttributes.cs
- SqlStream.cs
- IdnMapping.cs
- ToolStripItemCollection.cs
- FamilyTypeface.cs
- MediaElement.cs
- ToolBarTray.cs
- CommandLibraryHelper.cs
- NGCSerializer.cs
- ListViewSortEventArgs.cs
- SafeNativeMethods.cs
- AvTrace.cs
- XmlChildNodes.cs
- TemplateContentLoader.cs
- DelegateSerializationHolder.cs
- ExpandoObject.cs
- AppSettingsExpressionBuilder.cs
- ApplicationProxyInternal.cs
- DataQuery.cs
- OpenFileDialog.cs
- ContextItemManager.cs
- _PooledStream.cs
- ProjectionPlan.cs
- FontInfo.cs
- HitTestWithGeometryDrawingContextWalker.cs
- BatchParser.cs
- ContextStack.cs
- Utils.cs
- CheckBoxBaseAdapter.cs
- HyperLinkStyle.cs
- PropertyItemInternal.cs
- EntityParameter.cs
- ToolStripPanelRow.cs
- ProviderUtil.cs
- SQLByteStorage.cs
- SourceCollection.cs
- ToolStripScrollButton.cs
- TimeZone.cs
- IRCollection.cs
- SortAction.cs
- RadioButtonBaseAdapter.cs
- AutoCompleteStringCollection.cs
- Iis7Helper.cs
- Invariant.cs
- DispatcherSynchronizationContext.cs
- HttpClientCertificate.cs
- MessageSmuggler.cs
- XamlInterfaces.cs
- SHA384CryptoServiceProvider.cs
- RestClientProxyHandler.cs
- ToolStripDropDownItem.cs
- ImmutableCommunicationTimeouts.cs
- ThaiBuddhistCalendar.cs
- MobilePage.cs
- ViewgenGatekeeper.cs
- BindableTemplateBuilder.cs
- InlineObject.cs
- TextBoxBase.cs
- XmlSchemaAttributeGroupRef.cs
- VectorCollection.cs
- DataGridViewLinkColumn.cs
- Win32Interop.cs
- OracleInternalConnection.cs
- DependencyObjectProvider.cs
- SemaphoreSecurity.cs
- UndirectedGraph.cs
- querybuilder.cs
- DeviceOverridableAttribute.cs
- _ListenerResponseStream.cs
- ExtractorMetadata.cs
- RequestQueryProcessor.cs
- SafePEFileHandle.cs
- DbSetClause.cs
- Int32KeyFrameCollection.cs
- SystemBrushes.cs
- ExcCanonicalXml.cs
- DesignerForm.cs
- QuaternionAnimationUsingKeyFrames.cs
- NamedPermissionSet.cs
- ParameterSubsegment.cs
- ObjectFullSpanRewriter.cs
- X509CertificateCollection.cs
- TableLayout.cs
- DependencyObjectProvider.cs
- TemplatePartAttribute.cs
- Baml2006Reader.cs