diff --git a/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/InterpolatedStringHandlerArgumentAttribute.cs b/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/InterpolatedStringHandlerArgumentAttribute.cs
index edf68330..74ec0772 100644
--- a/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/InterpolatedStringHandlerArgumentAttribute.cs
+++ b/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/InterpolatedStringHandlerArgumentAttribute.cs
@@ -11,14 +11,20 @@ public sealed class InterpolatedStringHandlerArgumentAttribute : Attribute
///
/// The name of the argument that should be passed to the handler.
/// may be used as the name of the receiver in an instance method.
- public InterpolatedStringHandlerArgumentAttribute(string argument) => Arguments = new string[] { argument };
+ public InterpolatedStringHandlerArgumentAttribute(string argument)
+ {
+ Arguments = new string[] { argument };
+ }
///
/// Initializes a new instance of the class.
///
/// The names of the arguments that should be passed to the handler.
/// may be used as the name of the receiver in an instance method.
- public InterpolatedStringHandlerArgumentAttribute(params string[] arguments) => Arguments = arguments;
+ public InterpolatedStringHandlerArgumentAttribute(params string[] arguments)
+ {
+ Arguments = arguments;
+ }
///
/// Gets the names of the arguments that should be passed to the handler.
diff --git a/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/RuntimeHelpers.cs b/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/RuntimeHelpers.cs
index 70c1f18b..2676343b 100644
--- a/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/RuntimeHelpers.cs
+++ b/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/RuntimeHelpers.cs
@@ -14,5 +14,8 @@ internal static class RuntimeHelpers
/// The type to associate the memory to.
/// The size in byte of the memory to allocate.
/// A pointer to the allocated memory.
- public static IntPtr AllocateTypeAssociatedMemory(Type type, int size) => Marshal.AllocHGlobal(size);
+ public static IntPtr AllocateTypeAssociatedMemory(Type type, int size)
+ {
+ return Marshal.AllocHGlobal(size);
+ }
}
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Helpers/FormatInterpolatedStringHandler.cs b/src/ComputeSharp.Core/Helpers/FormatInterpolatedStringHandler.cs
index 0857714a..694f299e 100644
--- a/src/ComputeSharp.Core/Helpers/FormatInterpolatedStringHandler.cs
+++ b/src/ComputeSharp.Core/Helpers/FormatInterpolatedStringHandler.cs
@@ -134,6 +134,7 @@ internal ref struct FormatInterpolatedStringHandler
{
GrowThenCopyString(value);
}
+
return;
}
@@ -158,6 +159,7 @@ internal ref struct FormatInterpolatedStringHandler
{
GrowThenCopyString(value);
}
+
return;
}
@@ -278,6 +280,7 @@ internal ref struct FormatInterpolatedStringHandler
GrowCore((uint)position + (uint)additionalChars);
}
+#if NET6_0_OR_GREATER
///
/// Grows the size of .
///
@@ -286,6 +289,7 @@ internal ref struct FormatInterpolatedStringHandler
{
GrowCore((uint)characters.Length + 1);
}
+#endif
///
/// Grow the size of to at least the specified .
diff --git a/src/ComputeSharp.Core/Helpers/TryWriteFormatInterpolatedStringHandler.cs b/src/ComputeSharp.Core/Helpers/TryWriteFormatInterpolatedStringHandler.cs
index 62a898ca..43aff97e 100644
--- a/src/ComputeSharp.Core/Helpers/TryWriteFormatInterpolatedStringHandler.cs
+++ b/src/ComputeSharp.Core/Helpers/TryWriteFormatInterpolatedStringHandler.cs
@@ -183,9 +183,7 @@ internal ref struct TryWriteFormatInterpolatedStringHandler
}
#if NET6_0_OR_GREATER
- int charsWritten;
-
- if (value.TryFormat(destination.Slice(position), out charsWritten, format, formatProvider))
+ if (value.TryFormat(destination.Slice(position), out int charsWritten, format, formatProvider))
{
position += charsWritten;
diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.g.cs b/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.g.cs
index 937ed920..42845080 100644
--- a/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.g.cs
+++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.g.cs
@@ -1,5 +1,7 @@
using ComputeSharp.Core.Intrinsics.Attributes;
+#pragma warning disable IDE0022
+
namespace ComputeSharp;
///
diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.tt b/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.tt
index eeb80f9f..51a0a0e8 100644
--- a/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.tt
+++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.tt
@@ -4,6 +4,8 @@
<#@ output extension=".g.cs"#>
using ComputeSharp.Core.Intrinsics.Attributes;
+#pragma warning disable IDE0022
+
namespace ComputeSharp;
///
diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.Void.g.cs b/src/ComputeSharp.Core/Intrinsics/Hlsl.Void.g.cs
index d72e9827..98ba9e5a 100644
--- a/src/ComputeSharp.Core/Intrinsics/Hlsl.Void.g.cs
+++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.Void.g.cs
@@ -1,6 +1,8 @@
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
+#pragma warning disable IDE0022
+
namespace ComputeSharp;
///
diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.Void.tt b/src/ComputeSharp.Core/Intrinsics/Hlsl.Void.tt
index 1536a67a..fccd4923 100644
--- a/src/ComputeSharp.Core/Intrinsics/Hlsl.Void.tt
+++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.Void.tt
@@ -2,6 +2,8 @@
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
+#pragma warning disable IDE0022
+
namespace ComputeSharp;
///
diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.cs b/src/ComputeSharp.Core/Intrinsics/Hlsl.cs
index 73c9f47c..57e56054 100644
--- a/src/ComputeSharp.Core/Intrinsics/Hlsl.cs
+++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.cs
@@ -1,6 +1,8 @@
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
+#pragma warning disable IDE0022
+
namespace ComputeSharp;
///
diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.g.cs b/src/ComputeSharp.Core/Intrinsics/Hlsl.g.cs
index b59a334d..2ebe9659 100644
--- a/src/ComputeSharp.Core/Intrinsics/Hlsl.g.cs
+++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.g.cs
@@ -1,6 +1,8 @@
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
+#pragma warning disable IDE0022
+
namespace ComputeSharp;
///
diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.tt b/src/ComputeSharp.Core/Intrinsics/Hlsl.tt
index da74c73d..60fc7d8d 100644
--- a/src/ComputeSharp.Core/Intrinsics/Hlsl.tt
+++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.tt
@@ -2,6 +2,8 @@
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
+#pragma warning disable IDE0022
+
namespace ComputeSharp;
///