CreateDelegate Method (Type, Object)
Collapse the table of content
Expand the table of content

MethodInfo.CreateDelegate Method (Type, Object)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a delegate of the specified type with the specified target from this method.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public virtual Delegate CreateDelegate(
	Type delegateType,
	Object target


Type: System.Type
The type of the delegate to create.
Type: System.Object
The object targeted by the delegate.

Return Value

Type: System.Delegate
The delegate for this method.

Windows Phone OS

Supported in: 8.1, 8.0

© 2017 Microsoft