diff --git a/Directory.Build.props b/Directory.Build.props
index 65eb7e5b..a47c07f2 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -1,7 +1,7 @@
true
- 35.0.0
+ 38.0.3
$(WasmtimeVersion)$(WasmtimeDotnetVersion)-dev
$(WasmtimeVersion)$(WasmtimeDotnetVersion)
diff --git a/examples/Directory.Build.targets b/examples/Directory.Build.targets
new file mode 100644
index 00000000..4ccf9c33
--- /dev/null
+++ b/examples/Directory.Build.targets
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/examples/hello/hello.csproj b/examples/hello/hello.csproj
index 5e5a0f68..297321b3 100644
--- a/examples/hello/hello.csproj
+++ b/examples/hello/hello.csproj
@@ -1,13 +1,12 @@
-
Exe
net9.0
enable
+ true
-
+
-
-
+
\ No newline at end of file
diff --git a/src/Externs.cs b/src/Externs.cs
index 08b14076..bf61f455 100644
--- a/src/Externs.cs
+++ b/src/Externs.cs
@@ -7,7 +7,7 @@ namespace Wasmtime
[StructLayout(LayoutKind.Sequential)]
internal record struct ExternFunc
{
- static ExternFunc() => Debug.Assert(Marshal.SizeOf(typeof(ExternFunc)) == 16);
+ static ExternFunc() => Debug.Assert(Marshal.SizeOf() == 16);
public ulong store;
public IntPtr __private;
@@ -16,7 +16,7 @@ internal record struct ExternFunc
[StructLayout(LayoutKind.Explicit)]
internal record struct ExternTable
{
- static ExternTable() => Debug.Assert(Marshal.SizeOf(typeof(ExternTable)) == 24);
+ static ExternTable() => Debug.Assert(Marshal.SizeOf() == 24);
// Use explicit offsets because the struct in the C api has extra padding
// due to field alignments. The total struct size is 24 bytes.
@@ -33,7 +33,7 @@ internal record struct ExternTable
[StructLayout(LayoutKind.Explicit)]
internal record struct ExternMemory
{
- static ExternMemory() => Debug.Assert(Marshal.SizeOf(typeof(ExternMemory)) == 24);
+ static ExternMemory() => Debug.Assert(Marshal.SizeOf() == 24);
// Use explicit offsets because the struct in the C api has extra padding
// due to field alignments. The total struct size is 24 bytes.
@@ -49,7 +49,7 @@ internal record struct ExternMemory
[StructLayout(LayoutKind.Sequential)]
internal record struct ExternInstance
{
- static ExternInstance() => Debug.Assert(Marshal.SizeOf(typeof(ExternInstance)) == 16);
+ static ExternInstance() => Debug.Assert(Marshal.SizeOf() == 16);
public ulong store;
public nuint __private;
@@ -58,7 +58,7 @@ internal record struct ExternInstance
[StructLayout(LayoutKind.Sequential)]
internal record struct ExternGlobal
{
- static ExternGlobal() => Debug.Assert(Marshal.SizeOf(typeof(ExternMemory)) == 24);
+ static ExternGlobal() => Debug.Assert(Marshal.SizeOf() == 24);
public ulong store;
public uint __private1;
@@ -78,7 +78,7 @@ internal enum ExternKind : byte
[StructLayout(LayoutKind.Explicit)]
internal struct ExternUnion
{
- static ExternUnion() => Debug.Assert(Marshal.SizeOf(typeof(ExternUnion)) == 24);
+ static ExternUnion() => Debug.Assert(Marshal.SizeOf() == 24);
[FieldOffset(0)]
public ExternFunc func;
@@ -99,7 +99,7 @@ internal struct ExternUnion
[StructLayout(LayoutKind.Sequential)]
internal struct Extern : IDisposable
{
- static Extern() => Debug.Assert(Marshal.SizeOf(typeof(Extern)) == 32);
+ static Extern() => Debug.Assert(Marshal.SizeOf() == 32);
public ExternKind kind;
public ExternUnion of;
diff --git a/src/Function.FromCallback.cs b/src/Function.FromCallback.cs
index c45071c2..3ec3c3a8 100644
--- a/src/Function.FromCallback.cs
+++ b/src/Function.FromCallback.cs
@@ -9,6 +9,9 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
+#if NET5_0_OR_GREATER
+using System.Diagnostics.CodeAnalysis;
+#endif
namespace Wasmtime
{
@@ -19,6 +22,9 @@ public partial class Function
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, Action callback)
{
if (store is null)
@@ -80,6 +86,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, Action callback)
{
if (store is null)
@@ -142,6 +151,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, Action callback)
{
if (store is null)
@@ -206,6 +218,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, Action callback)
{
if (store is null)
@@ -272,6 +287,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, Action callback)
{
if (store is null)
@@ -340,6 +358,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, Action callback)
{
if (store is null)
@@ -410,6 +431,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, Action callback)
{
if (store is null)
@@ -482,6 +506,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, Action callback)
{
if (store is null)
@@ -556,6 +583,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, Action callback)
{
if (store is null)
@@ -632,6 +662,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, Action callback)
{
if (store is null)
@@ -710,6 +743,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, Action callback)
{
if (store is null)
@@ -790,6 +826,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, Action callback)
{
if (store is null)
@@ -872,6 +911,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, Action callback)
{
if (store is null)
@@ -956,6 +998,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func callback)
{
if (store is null)
@@ -1019,6 +1065,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func callback)
{
if (store is null)
@@ -1083,6 +1133,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func callback)
{
if (store is null)
@@ -1149,6 +1203,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func callback)
{
if (store is null)
@@ -1217,6 +1275,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func callback)
{
if (store is null)
@@ -1287,6 +1349,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func callback)
{
if (store is null)
@@ -1359,6 +1425,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func callback)
{
if (store is null)
@@ -1433,6 +1503,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func callback)
{
if (store is null)
@@ -1509,6 +1583,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func callback)
{
if (store is null)
@@ -1587,6 +1665,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func callback)
{
if (store is null)
@@ -1667,6 +1749,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func callback)
{
if (store is null)
@@ -1749,6 +1835,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func callback)
{
if (store is null)
@@ -1833,6 +1923,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func callback)
{
if (store is null)
@@ -1919,6 +2013,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -1984,6 +2082,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -2050,6 +2152,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -2118,6 +2224,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -2188,6 +2298,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -2260,6 +2374,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -2334,6 +2452,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -2410,6 +2532,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -2488,6 +2614,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -2568,6 +2698,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -2650,6 +2784,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -2734,6 +2872,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -2820,6 +2962,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -2908,6 +3054,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -2975,6 +3125,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -3043,6 +3197,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -3113,6 +3271,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -3185,6 +3347,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -3259,6 +3425,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -3335,6 +3505,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -3413,6 +3587,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -3493,6 +3671,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -3575,6 +3757,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -3659,6 +3845,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -3745,6 +3935,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -3833,6 +4027,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -3923,6 +4121,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -3992,6 +4194,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -4062,6 +4268,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -4134,6 +4344,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -4208,6 +4422,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -4284,6 +4502,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -4362,6 +4584,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -4442,6 +4668,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -4524,6 +4754,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -4608,6 +4842,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -4694,6 +4932,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -4782,6 +5024,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -4872,6 +5118,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, Func> callback)
{
if (store is null)
@@ -4964,6 +5214,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, CallerAction callback)
{
if (store is null)
@@ -5028,6 +5281,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, CallerAction callback)
{
if (store is null)
@@ -5094,6 +5350,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, CallerAction callback)
{
if (store is null)
@@ -5162,6 +5421,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, CallerAction callback)
{
if (store is null)
@@ -5232,6 +5494,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, CallerAction callback)
{
if (store is null)
@@ -5304,6 +5569,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, CallerAction callback)
{
if (store is null)
@@ -5378,6 +5646,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, CallerAction callback)
{
if (store is null)
@@ -5454,6 +5725,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, CallerAction callback)
{
if (store is null)
@@ -5532,6 +5806,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, CallerAction callback)
{
if (store is null)
@@ -5612,6 +5889,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, CallerAction callback)
{
if (store is null)
@@ -5694,6 +5974,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, CallerAction callback)
{
if (store is null)
@@ -5778,6 +6061,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, CallerAction callback)
{
if (store is null)
@@ -5864,6 +6150,9 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+#endif
public static Function FromCallback(Store store, CallerAction callback)
{
if (store is null)
@@ -5952,6 +6241,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc callback)
{
if (store is null)
@@ -6018,6 +6311,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc callback)
{
if (store is null)
@@ -6086,6 +6383,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc callback)
{
if (store is null)
@@ -6156,6 +6457,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc callback)
{
if (store is null)
@@ -6228,6 +6533,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc callback)
{
if (store is null)
@@ -6302,6 +6611,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc callback)
{
if (store is null)
@@ -6378,6 +6691,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc callback)
{
if (store is null)
@@ -6456,6 +6773,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc callback)
{
if (store is null)
@@ -6536,6 +6857,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc callback)
{
if (store is null)
@@ -6618,6 +6943,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc callback)
{
if (store is null)
@@ -6702,6 +7031,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc callback)
{
if (store is null)
@@ -6788,6 +7121,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc callback)
{
if (store is null)
@@ -6876,6 +7213,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc callback)
{
if (store is null)
@@ -6966,6 +7307,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -7034,6 +7379,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -7104,6 +7453,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -7176,6 +7529,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -7250,6 +7607,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -7326,6 +7687,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -7404,6 +7769,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -7484,6 +7853,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -7566,6 +7939,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -7650,6 +8027,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -7736,6 +8117,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -7824,6 +8209,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -7914,6 +8303,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -8006,6 +8399,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -8076,6 +8473,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -8148,6 +8549,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -8222,6 +8627,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -8298,6 +8707,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -8376,6 +8789,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -8456,6 +8873,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -8538,6 +8959,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -8622,6 +9047,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -8708,6 +9137,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -8796,6 +9229,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -8886,6 +9323,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -8978,6 +9419,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -9072,6 +9517,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -9144,6 +9593,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -9218,6 +9671,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -9294,6 +9751,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -9372,6 +9833,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -9452,6 +9917,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -9534,6 +10003,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -9618,6 +10091,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc> callback)
{
if (store is null)
@@ -9704,6 +10181,10 @@ out externFunc
///
/// The store to create the function in.
/// The callback for when the function is invoked.
+#if NET5_0_OR_GREATER
+ [RequiresDynamicCode("Creating functions from callbacks may require runtime code generation for parameter and result types.")]
+ [RequiresUnreferencedCode("Creating functions with results may require reflection.")]
+#endif
public static Function FromCallback(Store store, CallerFunc