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.
double 配列をコンマ区切りの文字列に変換したい。ラムダ式で実行可能ですか:
double [] test = new double [] {1 ,2, 3} ;
たとえば、ラムダ式を使用して上記の配列をカンマ区切りの文字列に変換したいとします。
double を特別な方法でフォーマットする必要がある場合は、次のようにすることができます。
var result = String.Join(",", test.Select(d => d.ToString("000000")));