[
https://issues.apache.org/jira/browse/IGNITE-13734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17254870#comment-17254870
]
Nikolay Izhikov commented on IGNITE-13734:
------------------------------------------
https://github.com/apache/ignite/pull/8602/files#diff-0f6d4d0b175af8cba3e9fbe421057f1460c92f27d7eb6132f2214bacefa95a60R157
- tests added to the PR.
[~ptupitsyn] Thanks for the review and approve!
I will run tests for .Net and then merge the PR.
> .NET Service loses returned array type information
> --------------------------------------------------
>
> Key: IGNITE-13734
> URL: https://issues.apache.org/jira/browse/IGNITE-13734
> Project: Ignite
> Issue Type: Bug
> Components: platforms
> Affects Versions: 2.9
> Reporter: Alexey Kukushkin
> Assignee: Nikolay Izhikov
> Priority: Major
> Fix For: 2.10
>
> Attachments: IGNITE-13734-from-2.9.0.patch
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> .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.
> h3. Reproducer
> A .NET service returning an array of user-defined types is deployed:
> {code:c#}
> public interface ITestService
> {
> Parameter[] TestReturnParametersArray();
> }
> public sealed class Parameter
> {
> public int Id { get; set; }
> public int[] Values { get; set; }
> }
> {code}
> A .NET client calls the service:
> {code:c#}
> Parameter[] res = svcProxy.TestReturnParametersArray()
> {code}
> The service call fails with exception:
> {code}
> System.InvalidCastException : Unable to cast object of type 'System.Object[]'
> to type 'Parameter[]'.
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)