From 7ff7f3902e5bdcc33bfc07fa6ad71a5798d7f8d6 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sat, 20 Nov 2021 21:31:30 +0100 Subject: Change to file-scoped namespaces. Add ConditionalWhere to QueryableHelpers.cs --- src/IOL.Helpers/DoubleHelpers.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/IOL.Helpers/DoubleHelpers.cs') diff --git a/src/IOL.Helpers/DoubleHelpers.cs b/src/IOL.Helpers/DoubleHelpers.cs index 91d88ee..44f01d5 100644 --- a/src/IOL.Helpers/DoubleHelpers.cs +++ b/src/IOL.Helpers/DoubleHelpers.cs @@ -1,11 +1,10 @@ using System; -namespace IOL.Helpers +namespace IOL.Helpers; + +public static class DoubleHelpers { - public static class DoubleHelpers - { - public static string ToStringWithFixedDecimalPoints(this double value) { - return $"{Math.Truncate(value * 10) / 10:0.0}"; - } + public static string ToStringWithFixedDecimalPoints(this double value) { + return $"{Math.Truncate(value * 10) / 10:0.0}"; } -} \ No newline at end of file +} -- cgit v1.3