Imported Upstream version 5.10.0.47

Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-01-24 17:04:36 +00:00
parent 88ff76fe28
commit e46a49ecf1
5927 changed files with 226314 additions and 129848 deletions

View File

@@ -47,7 +47,7 @@ namespace Windows.UI.Xaml
public GridLength(double value, GridUnitType type)
{
if (Double.IsNaN(value) || Double.IsInfinity(value) || value < 0.0)
if (!double.IsFinite(value) || value < 0.0)
{
throw new ArgumentException(SR.DirectUI_InvalidArgument, nameof(value));
}

View File

@@ -41,9 +41,7 @@ namespace Windows.UI.Xaml.Media.Animation
public RepeatBehavior(double count)
{
if (Double.IsInfinity(count)
|| Double.IsNaN(count)
|| count < 0.0)
if (!double.IsFinite(count) || count < 0.0)
{
throw new ArgumentOutOfRangeException(nameof(count));
}

View File

@@ -22,10 +22,7 @@
<Compile Include="Windows\UI\Xaml\Media3D\Matrix3DTests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\src\System.Runtime.WindowsRuntime.UI.Xaml.csproj">
<Project>{263DA4F1-C3BC-4B43-98E7-9F38B419A131}</Project>
<Name>System.Runtime.WindowsRuntime.UI.Xaml</Name>
</ProjectReference>
<ReferenceFromRuntime Include="System.Runtime.WindowsRuntime.UI.Xaml" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>