Aart Bluestoke
Aart Bluestoke
CC#
Created by Aart Bluestoke on 10/10/2023 in #help
❔ 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 ...:
000000000000xxxx except 1001,1010,1101
11011xxxxxxxxxxx
000000000001xxxx
111111111111111x
000000000000xxxx except 1001,1010,1101
11011xxxxxxxxxxx
000000000001xxxx
111111111111111x
but there is already a well optimised access to an in-memory lookup table within that function ...
6 replies
CC#
Created by Aart Bluestoke on 5/2/2023 in #help
❔ 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
CC#
Created by Aart Bluestoke on 5/2/2023 in #help
❔ how to supress warning CS8774
18 replies