.NET Design Review: JSON Serialization

preview_player
Показать описание
Today, we're reviewing JSON serialization.

Рекомендации по теме
Комментарии
Автор

2:50 IMO, if you are assuming "UTF8" "bytes" (so-called), there needs to be some comprehension as to the encoding, does there not? Or is that a default parameter tucked away in ToBytes or one of its overloads?

michaelpowell
Автор

5:40 I wouldn't underestimate the value of attributes by convention (i.e. at run-time). 14:00 Actually, *NO*, I would want to run by convention as much as possible, as *DRY* as possible, and only apply an attribute when absolutely necessary. The primary scenario is whether I have control over the source, which as alluded to, is not always the case.

michaelpowell