Switch expressions 讓C# 的switch statement 更方便了。 ... static double GetArea(object shape) { return shape switch { Rectangle r => r.
確定! 回上一頁