Automated dotnet-format update

This commit is contained in:
github-actions-dotnet-formatter[bot] committed 2020-12-04 15:12:55 +00:00
1 parent ad4c2f68aa
commit 2af18c2d38
403 files changed
+1569 -1567

No files matched your search

@@ -18,7 +18,7 @@ namespace HandyControl.Tools
{
if (comparerType == ComparerTypeCode.DateTimeRange)
{
return (IComparer<T>)new DateTimeRangeComparer();
return (IComparer<T>) new DateTimeRangeComparer();
}
return null;
@@ -90,7 +90,7 @@ namespace HandyControl.Tools
private Brush GetRenderBrush(string hashcode)
{
var v = (double)int.Parse(hashcode.Substring(hashcode.Length - 7), NumberStyles.HexNumber);
var v = (double) int.Parse(hashcode.Substring(hashcode.Length - 7), NumberStyles.HexNumber);
var scale = v / 0xfffffff;
var color = Hsl2Rgb(scale);
return new SolidColorBrush(color);
@@ -116,4 +116,4 @@ namespace HandyControl.Tools
(byte) (arr[(hValue | 8) % 6] * 255));
}
}
}
}
@@ -112,6 +112,6 @@ namespace HandyControl.Tools
private byte[] GetHatchData(HatchStyle hatchStyle) =>
hatchStyle < HatchStyle.Horizontal || hatchStyle > HatchStyle.SolidDiamond
? throw new ArgumentOutOfRangeException(nameof(hatchStyle))
: HatchBrushes[(int)hatchStyle];
: HatchBrushes[(int) hatchStyle];
}
}