kellyethridge / VBCorLib

The VBCorLib framework brings many of the powerful .NET classes to VB6.
http://www.kellyethridge.com/vbcorlib/
MIT License
115 stars 28 forks source link

Improve error message for BinaryWriter.WriteChar with surrogate. #29

Open kellyethridge opened 4 years ago

kellyethridge commented 4 years ago

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.