是否有可能在C#中出现类似以下内容
foreach (ref string var in arr) { var = "new value"; }
以便将var变量视为参考并分配给var将改变数组元素?
c# reference
c# ×1
reference ×1