fork download
  1. using System;
  2. using System.Drawing;
  3. using System.Collections.Generic;
  4.  
  5. public class Test
  6. {
  7. public static void Main() {
  8. Point[] arr = { new Point(10, 20), new Point(20, 40), new Point(40, 80) };
  9.  
  10. arr[1].X = 30;
  11.  
  12. foreach (var pt in arr) {
  13. Console.WriteLine(pt);
  14. }
  15.  
  16. }
  17. }
Success #stdin #stdout 0.03s 24176KB
stdin
Standard input is empty
stdout
{X=10,Y=20}
{X=30,Y=40}
{X=40,Y=80}