Aart Bluestoke
❔ how to test for invalid chars before xml serialisation?
the specific issue here was a char(2) embedded in a string, that crashed the file creation.
checking the source code only the following utf16 chars will crash the xml serialiser, so i could implement this myself if i have to ...:
but there is already a well optimised access to an in-memory lookup table within that function ...
6 replies
❔ how to supress warning CS8774
not the pit of success 😦
eg; if i checked the Result property of an Task that is not completed, i'm in undefined behavior; of course this could be NRE - i wouldn't expect invariants of the function to be enforced while the Task is incomplete ...
Question still stands then - any way to suppress the warning, or should i just #pragma around it?
18 replies