Invoke an generic method by name, in a reflection context.
This method is the only way to invoke a generic method in late bound conditions.
Namespace: Cartella.SupportAssembly: CartellaBase (in CartellaBase.dll) Version: 4.1.0.171 (4.1.0.171)
Syntax
C# |
---|
public static Object InvokeGenericMethod( string methodName, Object obj, Type[] genericTypeArguments, KeyValuePair<Type, Object>[] methodParameters ) |
Visual Basic |
---|
Public Shared Function InvokeGenericMethod ( _ methodName As String, _ obj As Object, _ genericTypeArguments As Type(), _ methodParameters As KeyValuePair(Of Type, Object)() _ ) As Object |
Visual C++ |
---|
public: static Object^ InvokeGenericMethod( String^ methodName, Object^ obj, array<Type^>^ genericTypeArguments, array<KeyValuePair<Type^, Object^>>^ methodParameters ) |
Parameters
- methodName
- Type: System..::..String
Generic method name to be executed
- obj
- Type: System..::..Object
Object on which the generic method is invoked
- genericTypeArguments
- Type: array<System..::..Type>[]()[][]
List of generic type arguments
- methodParameters
- Type: array<System.Collections.Generic..::..KeyValuePair<(Of <(<'Type, Object>)>)>>[]()[][]
Key value pair collection of parameters of the method