'pointer' : only non-static non-interior local pointers may be declared as pinned
Local pointers declared with the __pin keyword cannot be declared static and cannot be interior pointers.
The following sample generates C3824:
#using <mscorlib.dll> __gc struct A { }; void func() { static A __pin* a; // C3824, remove 'static' to resolve } void main() { }