• Jon Skeet's avatar
    Ensure that FieldMask, Timestamp and Duration ToString() calls don't throw · dd43dcca
    Jon Skeet authored
    The usage of ICustomDiagnosticMessage here is non-essential - ToDiagnosticString
    doesn't actually get called by ToString() in this case, due to JsonFormatter code. It was
    intended to make it clearer that it *did* have a custom format... but then arguably I should
    do the same for Value, Struct, Any etc.
    
    Moving some of the code out of JsonFormatter and into Duration/Timestamp/FieldMask likewise
    feels somewhat nice, somewhat nasty... basically there are JSON-specific bits of formatting, but
    also domain-specific bits of computation. <sigh>
    
    Thoughts welcome.
    dd43dcca
Name
Last commit
Last update
..
keys Loading commit data...
protos Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
CHANGES.txt Loading commit data...
README.md Loading commit data...
build_packages.bat Loading commit data...
buildall.sh Loading commit data...
generate_protos.sh Loading commit data...