mirror of
https://github.com/rudollee/LearningMVC.git
synced 2025-06-07 07:56:14 +00:00
Lambda Expression
This commit is contained in:
parent
9849d5f18d
commit
6f8592883d
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user