提交 f73f19f7 编写于 作者: C Cyrus Najmabadi

Add docs

上级 5c2e4872
......@@ -858,9 +858,12 @@ private bool ReplacementBreaksExpression(TExpressionSyntax expression, TExpressi
if (newReceiverType.IsValueType)
{
// Presume builtin value types are all immutable, and thus will have the same semantics when you call
// interface members on them directly instead of through a boxed copy.
if (newReceiverType.SpecialType != SpecialType.None)
return true;
// For non-builtins, only remove the boxing if we know we have a copy already.
return newReceiver != null && IsReceiverUniqueInstance(newReceiver, speculativeSemanticModel);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册