LineSeries - 2.0.0-RC2 Enumerable vs 2.0.0-RC3.3 ICollection #1635
Answered
by
beto-rodriguez
henrrymoraes83
asked this question in
Q&A
-
Question about Livecharts2 - version 2.0.0-RC3.3 for Avalonia On 2.0.0-RC2 to change the LineSeries possition I used this command:
The _currentLine.Values is of type Enumerable However in RC3.3 it no longer exists, now it has changed to ICollection and I cannot find a way to do the samething. Could you help me how to solve this? |
Beta Was this translation helpful? Give feedback.
Answered by
beto-rodriguez
Oct 10, 2024
Replies: 1 comment 1 reply
-
Hi you can use the ICollection values = new List<PilotInfo>();
var newValues = new PilotInfo[values.Count];
values.CopyTo(newValues, 0); but in the next version of the library your current code will work, so probably you can just skip this update and wait for |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
henrrymoraes83
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi you can use the
CopyTo
method:but in the next version of the library your current code will work, so probably you can just skip this update and wait for
rc4