Add [MethodImpl(MethodImplOptions.NoOptimization)] to Methods.cs.