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.
Java と Objective-C の世界に由来する LINQ に頭を悩ませようとしています。LINQ で次のループを実現する方法はありますか?
foreach(MyData d in mydata) { TreeNode n = new TreeNode(d.DisplayName); this.myTree.Nodes.Add(n); }
myTree.Nodes.AddRange(myData.Select(n => new TreeNode(n.DisplayName)).ToArray());
試す、