diff --git a/EntityFrameworkCore/RegexValueObjectEfCoreConverter.cs b/EntityFrameworkCore/RegexValueObjectEfCoreConverter.cs index aeca02a..ad9bfda 100644 --- a/EntityFrameworkCore/RegexValueObjectEfCoreConverter.cs +++ b/EntityFrameworkCore/RegexValueObjectEfCoreConverter.cs @@ -1,4 +1,5 @@ namespace Dgmjr.Primitives.EntityFrameworkCore; public class RegexValueObjectEfCoreConverter - : CastingConverter { } + : CastingConverter +{ } diff --git a/Tests/DurationTests.cs b/Tests/DurationTests.cs index 932d263..244be8f 100644 --- a/Tests/DurationTests.cs +++ b/Tests/DurationTests.cs @@ -39,11 +39,11 @@ duration expectedDuration }, new object[] { "-PT525600M", duration.FromMinutes(-525600) }, new object[] { "PT525600M", duration.FromMinutes(525600) } - }; - - public static IEnumerable YearMonthDurationTestData => - new[] - { + }; + +public static IEnumerable YearMonthDurationTestData => + new[] + { new object[] { "-P6500Y1M", @@ -69,6 +69,6 @@ duration expectedDuration -(YearMonthDuration.DaysPerYear + (3 * YearMonthDuration.DaysPerMonth)) ) }, - new object[] { "P3M", duration.FromDays(90) } - }; + new object[] { "P3M", duration.FromDays(90) } + }; } diff --git a/src/Int24.cs b/src/Int24.cs index 539522d..ec0c63f 100644 --- a/src/Int24.cs +++ b/src/Int24.cs @@ -177,7 +177,7 @@ public int CompareTo(i24 other) /// true if the value of the other parameter is the same as the value of this instance; otherwise, false. public bool Equals(i24 other) { - return SignExtend() == other.SignExtend(); + return SignExtend() == other.SignExtend(); } /// @@ -199,7 +199,7 @@ public i24 SignExtend() if ((this & Zero) != 0) { // Negative number: fill upper 8 bits with 1's - return unchecked ((i24)(int)(this | NegativeSignMask)); + return unchecked((i24)(int)(this | NegativeSignMask)); } // Positive number: fill upper 8 bits with 0's return (i24)(int)(this & PositiveSignMask); diff --git a/src/xsduration.cs b/src/xsduration.cs index ca05f29..1ba4db4 100644 --- a/src/xsduration.cs +++ b/src/xsduration.cs @@ -27,17 +27,17 @@ public static implicit operator duration(xsduration xsd) => xsd.Seconds.HasValue ? (int)Floor(xsd.Seconds.Value) : 0, xsd.Seconds.HasValue ? (int)Floor((xsd.Seconds.Value * 1000) - Floor(xsd.Seconds.Value)) - : 0 - // #if NET7_0_OR_GREATER - // , - // xsd.Seconds.HasValue - // ? (int)Floor( - // (xsd.Seconds.Value * 1000000) - // - Floor(xsd.Seconds.Value * 1000) - // - Floor(xsd.Seconds.Value) - // ) - // : 0 - // #endif + : 0 + // #if NET7_0_OR_GREATER + // , + // xsd.Seconds.HasValue + // ? (int)Floor( + // (xsd.Seconds.Value * 1000000) + // - Floor(xsd.Seconds.Value * 1000) + // - Floor(xsd.Seconds.Value) + // ) + // : 0 + // #endif ).Ticks * xsd.Sign );