[ 
https://issues.apache.org/jira/browse/IGNITE-2122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15058037#comment-15058037
 ] 

Vladimir Ozerov commented on IGNITE-2122:
-----------------------------------------

My concerns:
1) Users are not supposed to use concrete types when using "ReadCollection()" 
method. Concrete types are expected only with factories.
2) ToList() produces garbage. At the very least it is a collection and 
enumerator. Plus copying.
3) What about having the following interface. No casts, no copying:
{code}
T ReadCollection<T, K(Func<int, T> factory) where T : ICollection<K>;
{code}

> .NET: Add generic Read/WriteCollection and Read/WriteDictionary methods.
> ------------------------------------------------------------------------
>
>                 Key: IGNITE-2122
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2122
>             Project: Ignite
>          Issue Type: Task
>          Components: general, interop
>    Affects Versions: ignite-1.4
>            Reporter: Vladimir Ozerov
>            Assignee: Vladimir Ozerov
>            Priority: Critical
>             Fix For: 1.5
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to