Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
long(IEnumerable)の列挙をLINQを使用して単一の文字列(文字列)に変換する簡単でクリーンな方法(1行)があるかどうか疑問に思っていますか?
ありがとう
長い(整数?)をコンマで区切る場合は、次を試してください。
string str = string.Join(", ", myLongs.Select(l => l.ToString()).ToArray());
String.Join(yourIEnumerable, yourDelimiter)