Skip to content
Merged
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
4 changes: 3 additions & 1 deletion crates/bindings-csharp/BSATN.Runtime/Builtins.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
namespace SpacetimeDB;

using System.Diagnostics;
using System.Runtime.InteropServices;
using SpacetimeDB.BSATN;
#if !NET5_0_OR_GREATER
using System.Diagnostics;
#endif

internal static class Util
{
Expand Down
4 changes: 4 additions & 0 deletions crates/bindings-csharp/BSATN.Runtime/QueryBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -877,10 +877,14 @@ public static string FormatStringLiteral(ReadOnlySpan<char> value) =>

public static string FormatHexLiteral(string hex)
{
#if NET6_0_OR_GREATER
ArgumentNullException.ThrowIfNull(hex);
#else
if (hex is null)
{
throw new ArgumentNullException(nameof(hex));
}
#endif

var s = hex;
if (s.StartsWith("0x", StringComparison.OrdinalIgnoreCase))
Expand Down
Loading