var result=list.select(element=>element.split['_']).list();
/* I want to extract the part of the file name from a list of file names */
ファイル名の配列があり、各ファイル名の配列から名前の一部を抽出したい
例:
0-policy001_Printedlabel.pdf
1-policy002_Printedlabel.pdf
2-policy003_Printedlabel.pdf
3-policy004_Printedlabel.pdf
ここで、Linq を使用して上記の配列から配列を抽出したいと思います。
policy001,policy002,policy003,policy004
手伝ってくれませんか?私はラムダ式が初めてです。