fix: enable generic support #8

Merged
hugo merged 1 commits from fix/generics into main 2023-12-08 09:44:07 +00:00
3 changed files with 18 additions and 3 deletions
Showing only changes of commit 21161df232 - Show all commits

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
}