Closed Fantoom closed 2 years ago
For context: we're writing a C compiler using Cecil, and hit the issue while dumping the methods' IL code and comparing it in the compiler unit tests (one contributor had a locale that uses different number format, and broke the tests). So, I agree that these changes should be made.
Looking good, thank you!
Instruction.ToString() uses the culture of the current thread, which can be problematic for converting doubles and floats to a string.