I am using CSharpCodeProvider to compile my script into DLL, to speed up the compile time.
But I met a problem, the Unity5.3 upgrade the compiler and the foreach will not have GC Alloc problem anymore.
The dll I using CSharpCodeProvider to compile, however, it has GC Alloc when using foreach.
So what I met is in the source code version, there is no GC Alloc, but in DLL version, it has GC Alloc when I using foreach.
So how can I use the new compile to build my DLL?