未验证 提交 f40f8897 编写于 作者: M Martin Zikmund 提交者: GitHub

Merge pull request #13106 from Youssef1313/string-alloc

......@@ -566,8 +566,11 @@ namespace Uno.Media
{
throw new InvalidDataException("Invalid double value");
}
#if NET7_0_OR_GREATER
return double.Parse(doubleValue, CultureInfo.InvariantCulture);
#else
return double.Parse(doubleValue.ToString(), CultureInfo.InvariantCulture);
#endif
}
private Size ReadSize(ref ReadOnlySpan<char> span)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册