大規模なコード ベースをオープン ソース化したいのですが、そうする前にすべてのソースを手動で精査することは現実的に不可能です。
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
が削除されたようです。
私は彼らのコードを通してこれの他の多くの例を見つけました。
これらの編集はどのように計算されましたか? 単純な文字列マッチングですか?