Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace test
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             List<String> lista = new List<string>();
  13.             lista.Add("ja");
  14.  
  15.             var res = lista.Where(i => i.Contains("ja"));
  16.             Console.WriteLine(res.ToString());
  17.             Console.Read();
  18.  
  19.             //List<String> lista = new List<string>();
  20.             //lista.Add("ja");
  21.  
  22.             //var res = lista.Where(i => i.Contains("ja"));
  23.             //foreach (var r in res)
  24.             //{
  25.             //    Console.WriteLine(r.ToString());
  26.             //}
  27.  
  28.             //Console.Read();
  29.  
  30.        
  31.         }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement