For example, here's how JS_SOURCE_CONTEXT_NONE is defined in the original header:
const JsSourceContext JS_SOURCE_CONTEXT_NONE = (JsSourceContext)-1;
But here's what shows up in metadata:
public const UIntPtr JS_SOURCE_CONTEXT_NONE = default(UIntPtr);
Many dozens of other such examples. Perhaps an assert that verifies each constant has a literal value would help to avoid regressions.
Another example:
static const WCHAR g_wszWMUse_DRM[] = L"Use_DRM";
Becomes:
public const string g_wszWMUse_DRM = null;
For example, here's how
JS_SOURCE_CONTEXT_NONEis defined in the original header:But here's what shows up in metadata:
Many dozens of other such examples. Perhaps an assert that verifies each constant has a literal value would help to avoid regressions.
Another example:
Becomes: