「C#」配列の要素を取得するサンプル

2021年3月1日

書式
string[] 配列名={要素}
使用例

using System;

namespace TestApplication
{
  class Program
  {
    static void Main(string[] args)
    {
      string[] cft = {"A001", "B002", "C003", "D004"};
      Console.WriteLine(cft[1]);
    }
  }
}

実行結果
B002

C#

Posted by arkgame