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

scala - Play Framework - how to bind form to a session field -

Django Celery - running scheduled tasks -

perl - 'Unquoted string ".." may clash with future reserved word' but only when package is used -