这段程序会输出什么?

来自 数据类型
C# 14 / .NET 10 入门 2分钟

这段程序会输出什么?

csharp
using System;
using System.Collections.Generic;

var firstPoint = new Point(2);
var secondPoint = firstPoint;
secondPoint.X = 8;

var firstList = new List<int> { 2 };
var secondList = firstList;
secondList[0] = 8;

Console.WriteLine($"{firstPoint.X}, {firstList[0]}");

public struct Point
{
    public Point(int x) => X = x;
    public int X { get; set; }
}
在试验场中打开
报告错误