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.
以下に示すように、ResultView を保持する変数 results があります。
次に、StoryQ.Execution.Result IEnumerable は値を保持します。
「ストーリーはストーリー」のようなテキスト表現を抽出する必要があります。どうすればこれを達成できますか。誰でもこれについて私を助けることができますか?ありがとう
解決策は、select を文字列形式と組み合わせて使用することです。
.Select( c => new {Story_Prefix_Text = string.Format("{0} {1}" ,c.Prefix, c.Text)})
またはラムダなし
from currentpath in collection select new { Story_Prefix_Text = currentpath.Prefix + " " + currentpath.Text };