chore: use file-scoped namespace
This commit is contained in:
1 parent
99d2fafb72
commit
bbf1b7d4c6
748 files changed
+57929
-58678
No files matched your search
@@ -1,23 +1,22 @@
|
||||
using System.Windows;
|
||||
using HandyControl.Expression.Drawing;
|
||||
|
||||
namespace HandyControl.Tools.Extension
|
||||
namespace HandyControl.Tools.Extension;
|
||||
|
||||
public static class ValueExtension
|
||||
{
|
||||
public static class ValueExtension
|
||||
{
|
||||
public static Thickness Add(this Thickness a, Thickness b) => new(a.Left + b.Left, a.Top + b.Top, a.Right + b.Right, a.Bottom + b.Bottom);
|
||||
public static Thickness Add(this Thickness a, Thickness b) => new(a.Left + b.Left, a.Top + b.Top, a.Right + b.Right, a.Bottom + b.Bottom);
|
||||
|
||||
public static bool IsZero(this Thickness thickness) =>
|
||||
MathHelper.IsZero(thickness.Left)
|
||||
&& MathHelper.IsZero(thickness.Top)
|
||||
&& MathHelper.IsZero(thickness.Right)
|
||||
&& MathHelper.IsZero(thickness.Bottom);
|
||||
public static bool IsZero(this Thickness thickness) =>
|
||||
MathHelper.IsZero(thickness.Left)
|
||||
&& MathHelper.IsZero(thickness.Top)
|
||||
&& MathHelper.IsZero(thickness.Right)
|
||||
&& MathHelper.IsZero(thickness.Bottom);
|
||||
|
||||
public static bool IsUniform(this Thickness thickness) =>
|
||||
MathHelper.AreClose(thickness.Left, thickness.Top)
|
||||
&& MathHelper.AreClose(thickness.Left, thickness.Right)
|
||||
&& MathHelper.AreClose(thickness.Left, thickness.Bottom);
|
||||
public static bool IsUniform(this Thickness thickness) =>
|
||||
MathHelper.AreClose(thickness.Left, thickness.Top)
|
||||
&& MathHelper.AreClose(thickness.Left, thickness.Right)
|
||||
&& MathHelper.AreClose(thickness.Left, thickness.Bottom);
|
||||
|
||||
public static bool IsNaN(this double value) => double.IsNaN(value);
|
||||
}
|
||||
}
|
||||
public static bool IsNaN(this double value) => double.IsNaN(value);
|
||||
}
|
||||
Reference in new issue
Block a user