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 C2693

'operator' : illegal comparison for references to managed NGWS frameworks array

You cannot test a managed array for any kind of inequality. For example, you can test to see if managed arrays are equal but you cannot test to see if one array is greater or less than another array.

For example, the following sample generates C2693:

#define MANAGED __gc

int func1(MANAGED int a[], MANAGED int b[]) { return a==b; }  // OK
int func2(MANAGED int a[], MANAGED int b[]) { return a!=b; }  // OK
int func3(MANAGED int a[], MANAGED int b[]) { return a<b; }  // C2693