NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C3823

'__pin' : storage class modifier can only be applied to a pointer

The __pin keyword can only be applied to pointers.

The following sample generates C3823:

#using <mscorlib.dll>

__pin struct A {   // C3823, cannot use __pin on a struct
};

struct B {
};

void main() {
   __pin B *a1;   // C3823
   // try ..
   // B __pin* a2;
}