Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

linq foreach c#

sequence.Where(x => x.Name.ToString().Equals("Apple"))
    .ToList()
    .ForEach( x =>
     {
       if(someCondition)
       {
         // Do some stuff here.
       }  
     });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linq #foreach
ADD COMMENT
Topic
Name
1+9 =