Details
Description
.NET service client receives Object[] instead of strongly typed array from a .NET service.
There was another already resolved similar issue IGNITE-12823 that addressed the problem of using arrays as parameters. The problem of using arrays as results still exists.
Reproducer
A .NET service returning an array of user-defined types is deployed:
public interface ITestService { Parameter[] TestReturnParametersArray(); } public sealed class Parameter { public int Id { get; set; } public int[] Values { get; set; } }
A .NET client calls the service:
Parameter[] res = svcProxy.TestReturnParametersArray()
The service call fails with exception:
System.InvalidCastException : Unable to cast object of type 'System.Object[]' to type 'Parameter[]'.
Attachments
Attachments
Issue Links
- is related to
-
IGNITE-14299 .NET: Service loses array type information
- Resolved
- relates to
-
IGNITE-12823 .NET: Service method with user type array parameter can't be found
- Resolved
- links to