C# parse string “0” to integer

前端 未结 8 956
抹茶落季
抹茶落季 2021-01-18 02:58

I have a new laptop at work and code that worked earlier in the week does not work today.

The code that worked before is, simplified:

while (dr.Read         


        
8条回答
  •  南笙
    南笙 (楼主)
    2021-01-18 03:44

    I have seen this issue crop up with .NET Double class, parsing from string "0" as well.

    Here's the really wacky part: you can get past the issue by using a different user account to run the program, and sometimes if you destroy and re-create the current user account on the machine, it will run fine.

    I have yet to track this down, but you might get past it this way at least.

提交回复
热议问题