fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. SortedSet<float> zValuesSet = new SortedSet<float> { 1, 2, 3 };
  10.  
  11. //float[] zValues = new float[zValuesSet.Count];
  12. //zValuesSet.CopyTo(zValues);
  13. float[] zValues = zValuesSet.ToArray();
  14.  
  15. foreach(var v in zValues)
  16. {
  17. Console.WriteLine(v);
  18. }
  19. }
  20. }
Success #stdin #stdout 0.02s 18528KB
stdin
Standard input is empty
stdout
1
2
3