Open HZ-GeLiang opened 1 year ago
Hm, this should indeed work. I'll add a regression test for this and see if I can pinpoint where things go wrong.
@HZ-GeLiang
You wanted to initialize an array for one element typeof int - int[1] or new int[1] { 1 } ?
Now this get
var v1_2 = v_int1.Adapt<List
>().Adapt<int[]>();//ok
you get int[0] - empty array for Type int
@HZ-GeLiang You wanted to initialize an array for one element typeof int - int[1] or new int[1] { 1 } ? Now this get
var v1_2 = v_int1.Adapt
().Adapt<int[]>();//ok
you get int[0] - empty array for Type int
I want is new int [1]{1}
If possible, I would like the result to be:
v_int1.Adapt<List
new List<int>();
v_int1.Adapt<int[]>() // returns new int[] { 1 }