Last active
August 13, 2016 13:39
-
-
Save kazumalab/598365e873345a8af50c3b11beeb1a6e 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.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