Skip to content

Instantly share code, notes, and snippets.

@kazumalab
Last active August 13, 2016 13:39
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 kazumalab/598365e873345a8af50c3b11beeb1a6e to your computer and use it in GitHub Desktop.
Save kazumalab/598365e873345a8af50c3b11beeb1a6e to your computer and use it in GitHub Desktop.
using System.Linq; # これが必要
public class LinqSelect {
List<int> lists = new List<int>() {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
void Start () {
IEnumerable<int> list_where = from num in lists
where num > 5
select num;
foreach(int i in list_where){
Debug.Log (i);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment