📜  c# 从数组中弹出 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:11.284000             🧑  作者: Mango

代码示例1
using System.Linq;

namespace Program
{
    public class Program
    {
      string[] cLangs = { "Langs","C", "C++", "C#" };
      // String join will just join the array with a comma and a whitespace
      // Using Linq, the skip method will skip x (called count in the parameter) number elements you tell it to
      Console.WriteLine(string.Join(", ", cLangs.Skip(1).ToArray())); // Output: C, C++, C#
    }
}