Customer cus=new customer();
from c in doc.Descendants(XName.Get("details", name))
select
{
cus.firstname =c.Element(XName.Get("to", name)).value;
}
linqのselect本体でインスタンス変数を使用する方法
こんにちは、
selectステートメント内のcustインスタンス変数名にアクセスする必要があります。
次のような新しいインスタンスを作成したくない
select new customer
{
cus.firstname.
}
これで助け。