stringbuilder.cs的参考源页面在ToString方法中有以下注释:
if (chunk.m_ChunkLength > 0)
{
// Copy these into local variables so that they
// are stable even in the presence of ----s (hackers might do this)
char[] sourceArray = chunk.m_ChunkChars;
int chunkOffset = chunk.m_ChunkOffset;
int chunkLength = chunk.m_ChunkLength;
这是什么意思?----s
是否是恶意用户可能插入格式化字符串中的内容?
----s
这个词语可能以s
结尾,程序员不想让它太容易被猜到。 - Zohar Peled