Partager via


PexChoose.CreateDelegate<TDelegate> Method

Definition

Creates a delegate of type TDelegate.

public:
generic <typename TDelegate>
 static TDelegate CreateDelegate();
public static TDelegate CreateDelegate<TDelegate> ();
static member CreateDelegate : unit -> 'Delegate
Public Shared Function CreateDelegate(Of TDelegate) () As TDelegate

Type Parameters

TDelegate

The delegate type.

Returns

TDelegate

Returns the delegate.

Remarks

The delegate cannot support out or ref parameters.

Applies to