1 is definitely not true. You can define a structure in managed code and call the
extern
method[
^].
2 is possible in .Net 2.0 but not in 1.1.
.Net 2.0 contains a
UnmanagedFunctionPointerAttribute
attribute which allows us to pass a delegate to unmanaged
code[
^].
So basically, AFAIK, 2 would be the right answer for .Net 1.1.
But for .Net 2.0 and beyond, both would be incorrect.
Good question. Had me thinking (and reading) a while.