You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arrow arrays of scalar type T implement the same semantic contract as IReadOnlyList<T?>. If they were to implement this contract then they could be used in existing code which expects arrays of that type. If they were also to implement ICollection<T?>, it would optimize their use with LINQ (pre-.NET 9), allowing for e.g. fast conversion to lists via the extension method ToList().
This change would to some extent supersede and/or resolve #23892, #35199 and #37359.
Component(s)
C#
The text was updated successfully, but these errors were encountered:
### What changes are included in this PR?
Make Arrow arrays of scalar type T implement the same semantic contract as IReadOnlyList<T?>.
Note that this PR does not include similar support for ICollection<T?>. I could add that support in this PR or a future PR.
### Are these changes tested?
This PR includes unit tests of the implemented IReadOnlyList<T?> methods.
* Closes: #38348
Authored-by: voidstar69 <[email protected]>
Signed-off-by: Curt Hagenlocher <[email protected]>
CurtHagenlocher
changed the title
[C#] Implement IReadOnlyList<T?> and ICollection<T?> on scalar arrays
[C#] Implement IReadOnlyList<T?> on scalar arrays
Jan 15, 2024
dgreiss
pushed a commit
to dgreiss/arrow
that referenced
this issue
Feb 19, 2024
…apache#38680)
### What changes are included in this PR?
Make Arrow arrays of scalar type T implement the same semantic contract as IReadOnlyList<T?>.
Note that this PR does not include similar support for ICollection<T?>. I could add that support in this PR or a future PR.
### Are these changes tested?
This PR includes unit tests of the implemented IReadOnlyList<T?> methods.
* Closes: apache#38348
Authored-by: voidstar69 <[email protected]>
Signed-off-by: Curt Hagenlocher <[email protected]>
Describe the enhancement requested
Arrow arrays of scalar type T implement the same semantic contract as IReadOnlyList<T?>. If they were to implement this contract then they could be used in existing code which expects arrays of that type. If they were also to implement ICollection<T?>, it would optimize their use with LINQ (pre-.NET 9), allowing for e.g. fast conversion to lists via the extension method ToList().
This change would to some extent supersede and/or resolve #23892, #35199 and #37359.
Component(s)
C#
The text was updated successfully, but these errors were encountered: