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?Answer1:
The exception messages are controlled by the thread's culture. You can find some workaround suggestions <a href="https://stackoverflow.com/questions/209133/c-exception-messages-in-english" rel="nofollow">here</a>.Answer2:
Google translate gives us:<blockquote>
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.</blockquote>
<strong>Edit:</strong> Event though this translation is not perfect it gives us a good idea of the problem. Here is my transalatio nof the translation ;-)<blockquote>
The value null cannot be <em>assigned</em> to a member of type System.Boolean because it is a value type that cannot be a null value.</blockquote>
For the record, I think only the
Nullable<> value type can be assigned a null value.