Skip to content
Discussion options

You must be logged in to vote

It doesn't assume that you want a string, and for non-numeric values: byte[] is the lowest common denominator that can handle all values in a lossless way.

In scenarios where you need to control memory usage, the Lease methods are usually good choices - StringGetLeaseAsync etc. this gives you a buffer that is then pooled. Alternatively, when I finish the V3 rework, it should have hooks to allow a wide range of custom things at the caller's discretion, in advanced cases.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@petrroll
Comment options

@mgravell
Comment options

@mgravell
Comment options

@petrroll
Comment options

@petrroll
Comment options

Answer selected by petrroll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants