阅读背景:

如何在C#中转换为字节时截断字符串?

来源:互联网 

I would like to put a string into a byte array, but the string may be too big to fit. In the case where it's too large, I would like to put as much of the string as possible into the array. Is there an efficient way to find out how many characters will fit?I would like to put a string into a byte array,




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: