blob: 1ab6524a9a765f09874f49b9a2a2c612adc345e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MaterialDesignThemes.Wpf.Converters.CircularProgressBar
{
internal static class LocalEx
{
public static double ExtractDouble(this object val)
{
var d = val as double? ?? double.NaN;
return double.IsInfinity(d) ? double.NaN : d;
}
public static bool AnyNan(this IEnumerable<double> vals)
{
return vals.Any(double.IsNaN);
}
}
}
|