提交 7e0ca72d 编写于 作者: C Chris Sienkiewicz

Remove un-needed IsValueType check

上级 6f4c112d
......@@ -843,7 +843,7 @@ private void GetDisposalInfoForEnumerator(ref ForEachEnumeratorInfo.Builder buil
{
builder.NeedsDisposeMethod = true;
}
else if (enumeratorType.IsValueType && enumeratorType.IsRefLikeType)
else if (enumeratorType.IsRefLikeType)
{
// if it wasn't directly convertable to IDisposable, see if it is pattern disposable
// again, we throw away any binding diagnostics, and assume it's not disposable if we encounter errors
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册