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 C3747

NGWS frameworks string literals are not allowed in attribute blocks

NGWS string literals are not permitted in attribute blocks.

The following sample generates C3747:

#using <mscorlib.dll>
using namespace System;

[ attribute(All) ]
public __gc struct ABC {
   ABC(String*) {
   }
};

[ ABC(S"test") ]   // C3747
// try the following line instead
// [ ABC("test") ]
public __gc struct AAA {
};

void main() {
}