Passing arrays to Tasks like below currently requires one manually specify the array size (see here):
|
public void PassArrayToTask() |
|
{ |
|
var array = new int[TaskArrayLength]; |
|
var tasks = new Task<int>[15]; |
|
|
|
tasks[0] = Task.Factory.StartNew( |
|
arrayObject => |
|
{ |
|
var localArray = (int[])arrayObject; |
|
localArray[0] = 123; |
|
return localArray[0]; |
|
}, |
|
array); |
|
} |
This should rather be handled automatically.
Then remove the manual array size config in StaticTestInputAssembliesVerificationTests.
Jira issue
Passing arrays to
Tasks like below currently requires one manually specify the array size (see here):Hastlayer-SDK/test/TestInputAssemblies/Hast.TestInputs.Static/ArrayUsingCases.cs
Lines 9 to 22 in 196ba40
This should rather be handled automatically.
Then remove the manual array size config in
StaticTestInputAssembliesVerificationTests.Jira issue