1
0
mirror of https://github.com/rudollee/LearningMVC.git synced 2025-06-07 16:06:21 +00:00

Lambda Expression

This commit is contained in:
wook 2017-04-03 02:38:21 +09:00
parent 9849d5f18d
commit 6f8592883d

View File

@ -80,10 +80,7 @@ namespace LanguageFeatures.Controllers
}
};
Func<Product, bool> categoryFileter = delegate (Product prod)
{
return prod.Category == "Soccer";
};
Func<Product, bool> categoryFileter = prod => prod.Category == "Soccer";
decimal total = 0;