close

Tokens f = new Tokens("This is a sample sentence.", newchar[] {' ','-'}); // Display the tokens.

 

foreach (string item in f) { System.Console.WriteLine(item); }

 

 

https://docs.microsoft.com/zh-tw/dotnet/csharp/programming-guide/classes-and-structs/how-to-access-a-collection-class-with-foreach

arrow
arrow
    全站熱搜
    創作者介紹

    Chill_Radio 發表在 痞客邦 留言(0) 人氣()