Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with dotnet-format #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion EntityFrameworkCore/RegexValueObjectEfCoreConverter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Dgmjr.Primitives.EntityFrameworkCore;

public class RegexValueObjectEfCoreConverter<TValueObject>
: CastingConverter<TValueObject, string> { }
: CastingConverter<TValueObject, string>
{ }
4 changes: 2 additions & 2 deletions src/Int24.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public int CompareTo(i24 other)
/// <returns>true if the value of the other parameter is the same as the value of this instance; otherwise, false.</returns>
public bool Equals(i24 other)
{
return SignExtend() == other.SignExtend();
return SignExtend() == other.SignExtend();
}

/// <summary>
Expand All @@ -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);
Expand Down
22 changes: 11 additions & 11 deletions src/xsduration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down
Loading