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 开发者_StackOverflow中文版get these messages in English?
The exception messages are controlled by the thread's culture. You can find some workaround suggestions here.
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.
精彩评论