我想开源一个大型代码库,并且在这样做之前实际上无法手动审查所有源代码。
似乎 MS 从他们为 .NET BCL 发布的源代码中的注释中编辑了一些文本。
下面是一个例子System.Lazy<T>
:
if (boxed == null ||
Interlocked.CompareExchange(ref m_boxed, boxed, null) != null)
{
// If CreateValue returns null, it means another thread successfully invoked the value factory
// and stored the result, so we should just take what was stored. If CreateValue returns non-null
// but we lose the ---- to store the single value, again we should just take what was stored.
boxed = (Boxed)m_boxed;
}
注意----
文字。看来这个词race
可能已经被删除了。
在他们的代码中,我似乎还有很多其他的例子。
这些修订是如何计算的?是简单的字符串匹配吗?