c# ?. 相关报错: Feature `null propagating operator’ cannot be used because it is not part of the C# 4.0 language specification a?.sort() 的用法相当于 if(a != null) a.sort(); 也可以将编辑器设置脚本运行时的版本为 .NET 4.x