Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Lambda expression and Linq

$
0
0

About use the "ForEach" of list class, I solved...

           invoke myList::ForEach(delegate using x as type String
                                           invoke type Console::WriteLine(x)
                                      end-delegate).

but, it's possible to use the Linq to objects method ?

Something like this ??????:
set minhaNovaLista to minhaLista::Where(delegate using x as type String returning y as type String
                                                       if(x::Length > 1)
                                                           move x to y
                                                       end-if
                                                   end-delegate).


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>