Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kenwilcox
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenwilcox/08f1db6afb049415c67c to your computer and use it in GitHub Desktop.
Save kenwilcox/08f1db6afb049415c67c to your computer and use it in GitHub Desktop.
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