T
Delegate type
IdeaBlade DevForce 2010 Help Reference
GetDelegate<T> Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > ReflectionFns Class : GetDelegate<T> Method



pTypeName
Assembly-qualified type name
pMethodName
Name of static method
pSignature
Optional method signature
Returns a delegate of the indicated type.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetDelegate(Of T)( _
   ByVal pTypeName As String, _
   ByVal pMethodName As String, _
   ByVal pSignature() As Type _
) As T
Visual Basic (Usage)Copy Code
Dim pTypeName As String
Dim pMethodName As String
Dim pSignature() As Type
Dim value As T
 
value = ReflectionFns.GetDelegate(Of T)(pTypeName, pMethodName, pSignature)
C# 
public static T GetDelegate<T>( 
   string pTypeName,
   string pMethodName,
   Type[] pSignature
)
C++/CLI 
public:
static T^ GetDelegategeneric<typename T>
( 
   String^ pTypeName,
   String^ pMethodName,
   array<Type^>^ pSignature
) 

Parameters

pTypeName
Assembly-qualified type name
pMethodName
Name of static method
pSignature
Optional method signature

Type Parameters

T
Delegate type

Remarks

pSignature is required only if the pMethodName is overloaded.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.