I have some code written in Java which I want to convert to Xamarin (C#). How can I write this in C#?

```
private static final Class<?>[] mSetForegroundSignature = new Class[] { boolean.class };
private static final Class<?>[] mStartForegroundSignature = new Class[] { int.class, Notification.class };
private static final Class<?>[] mStopForegroundSignature = new Class[] { boolean.class };

```

I don't know how to get this "boolean.class" and "< ? >" also doesn't work.
Because then this gets called

```
Method mStartForeground = getClass().getMethod("startForeground", mStartForegroundSignature);

```

And then some wrapper for each like

```
if (mStartForeground != null) {
        mStartForegroundArgs[0] = Integer.valueOf(id);
        mStartForegroundArgs[1] = notification;
        invokeMethod(mStartForeground, mStartForegroundArgs);
        return;
    }

```