c# - How to convert the following foreach loop to linq code format? -


संहिता:

  foreach (var testView in projectDataCandidate.ViewMaps। जहां (vm = & gt ;; Vm.IsNotTestLane)। चयन करें (यह। GenerateTestView)) {यह.SwimLaneViews.Add (testView); TestView.ItemsOrphaned + = OnItemsOrphaned; }  

उपरोक्त foreach लूप को लिनक कोड स्वरूप में कैसे लिख सकता है? धन्यवाद।

<पूर्व> projectDataCandidate.ViewMaps। जहां (vm = & gt; vm.IsNotTestLane)। चुनें (this.GenerateTestView) .ToList () .पहले (testView = & gt; {यह। स्मीमैन दृश्य। जोड़ें (testView); testView.ItemsOrphaned + = OnItemsOrphaned;});

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -