The WriteChar method correctly fails when attempting to write a surrogate character. However, it may be beneficial to have a better explanation saying that a single surrogate character can't be written and to consider using WriteValue with a character array.
The
WriteChar
method correctly fails when attempting to write a surrogate character. However, it may be beneficial to have a better explanation saying that a single surrogate character can't be written and to consider usingWriteValue
with a character array.