Size

... custom attributes elided for clarity here ... } // end of class '<CppImplementationDetails>'[email protected]$$CBD

In native C++, these string literals are internally placed into a data section. To access this data via a value type, the C++/CLI compiler generates metadata for global variables that map to the native string literal data. This is shown in the following ILDASM excerpt:

.field static assembly valuetype '<CppImplementationDetails>'[email protected]$$CB_W modopt([mscorlib]System.Runtime.CompilerServices.IsConst) '?A0x567a3bdb.unnamed-global-0' at D_00003120

.field static assembly valuetype '<CppImplementationDetails>'[email protected]$$CBD modopt([mscorlib]System.Runtime.CompilerServices.IsConst) '?A0x567a3bdb.unnamed-global-1' at D_0000314C

Was this article helpful?

0 0

Post a comment