Created
March 9, 2012 04:01
-
-
Save indare/2004959 to your computer and use it in GitHub Desktop.
Linqの理解用
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; | |
using System.Linq; | |
using System.Text; | |
namespace linqtest | |
{ | |
public class hoge{ | |
public string id; | |
public int value; | |
} | |
public class Class1 | |
{ | |
public void hoge() | |
{ | |
List<hoge> Ulist = new List<hoge>(); | |
string fuga = Ulist.Single(n => n.id == "1").id; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment