Splitの読み方
C#で利用されるメソッドの1つである「Split」の読み方を掲載してます。
読み⽅
「スプリット」と読みます。
英訳
「分裂」という意味があります。
Splitとは
C#で、文字列を指定した区切り文字で分割するメソッドとなります。
using System;
using System.Collections.Generic;
namespace sebeeapp
{
class Program
{
static void Main(string[] args)
{
string[] arr = "test test test".Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
foreach (string s in arr)
{
Console.WriteLine(s);
}
}
}
}
実行結果
sebee
sebee
sebee
-
前の記事
Math.Truncateの読み方 2020.11.28
-
次の記事
Nimの読み方 2020.11.30