How to reproduce:
1. Open the attached project "Il2cppTesting.zip"
2. Build the project
Expected results: The Build is successful
Actual results: Build fails with errors "___m_CachedPtr_0': is not a member of 'DataDef_tF1D37118C24F6918E35C503893E0B1A7E556C7C0_marshaled_pinvoke'"
Reproducible with: 2021.3.41f1, 2022.3.40f1, 6000.0.13f1
Reproducible on: Windows 10 22H2
Not reproducible on: No other environment tested