-
-
Save kenwilcox/08f1db6afb049415c67c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace Pred | |
{ | |
public class Pred | |
{ | |
static void Main() | |
{ | |
List<string> list = new List<string>(); | |
list.Add("This"); | |
list.Add("Test"); | |
list.Add("Bard"); | |
list.Add("Monk"); | |
list.Add("Something"); | |
Console.WriteLine(String.Join(",", list.ToArray())); | |
List<string> id = list.FindAll(e => e.Contains("t")); | |
Console.WriteLine(String.Join(",", id.ToArray())); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment