[LinQ] where

摘要:[LinQ] where

List<TestEntity> allEny;
<TestEntity> enyA;
<TestEntity> enyB;
enyA = allEny.FirstOrDefault(s => s.Title == "Condition");
enyB = (from s in allEny where s.Title.Equals("Condition") select s).FirstOrDefault();

/// enyA 等同於 enyB