fix: enable generic support

This commit is contained in:
Hugo Pointcheval 2023-12-08 10:42:45 +01:00
parent 2b114a0e4f
commit 21161df232
Signed by: hugo
GPG Key ID: 3AAC487E131E00BC
3 changed files with 18 additions and 3 deletions

View File

@ -2,6 +2,14 @@
public class Math
{
static public float Reccursive(float n) {
return Reccursive(n, 1);
}
static private float Reccursive(float n, float i) {
return n;
}
public float Substract(float a, float b)
{
return a - b;
@ -12,7 +20,7 @@ public class Math
return a * b;
}
public float Devide(float a, float b)
public float Divide(float a, float b)
{
return a / b;
}
@ -26,4 +34,9 @@ public class Math
{
return a + b;
}
public List<float> Iterate(float a, float b)
{
return [a, b];
}
}

View File

@ -2,6 +2,7 @@
"AssemblyPath": "INPUT_PROJECT_NAME/bin/Release/INPUT_NET_SPEC/INPUT_PROJECT_NAME.dll",
"CSharpUnmanagedOutputPath": "GENERATED_PROJECT_NAME/Generated.cs",
"COutputPath": "GENERATED_PROJECT_NAME/Generated.h",
"EnableGenericsSupport": true,
"ExcludedTypeNames": [
"System.GC",
"System.Reflection.MemberInfo",

View File

@ -1,5 +1,6 @@
{
"AssemblyPath": "INPUT_PROJECT_NAME/bin/Release/INPUT_NET_SPEC/INPUT_PROJECT_NAME.dll",
"CSharpUnmanagedOutputPath": "GENERATED_PROJECT_NAME/Generated.cs",
"COutputPath": "GENERATED_PROJECT_NAME/Generated.h"
}
"COutputPath": "GENERATED_PROJECT_NAME/Generated.h",
"EnableGenericsSupport": true
}