Code: Select all
Type[] args = [typeof(int), typeof(int)];
// Pointer to (int -> int) method
Type functionPointerType = typeof(delegate*).MakeGenericType(args);
Ein konkreteres Beispiel: Wie würde ich System.Reflection.Emit verwenden, um ein Feld wie dieses zu erstellen:
Code: Select all
.field public method int32 *(int32) function