i18n yellow screen of death

2019-07-07 15:21发布

问题:

System.InvalidOperationException:Värdet null kan inte tilldelas en medlem av typen System.Boolean eftersom den är en värdetyp som inte kan ha värdet null.

Thank you Microsoft, intentions are good, I know. As if anybody who really finds this information useful would also consider Swedish as the coding lingua franca. The Moldavians can just turn to Moldavian StackOverflow and post their queries for speedy help.

Does anybody know how to get these messages in English?

回答1:

The exception messages are controlled by the thread's culture. You can find some workaround suggestions here.



回答2:

Google translate gives us:

The value null can not be awarded to a member of type System.Boolean because it is a value type that can not be null value.

Edit: Event though this translation is not perfect it gives us a good idea of the problem. Here is my transalatio nof the translation ;-)

The value null cannot be assigned to a member of type System.Boolean because it is a value type that cannot be a null value.

For the record, I think only the Nullable<> value type can be assigned a null value.