mirror of
https://github.com/rudollee/LearningMVC.git
synced 2025-06-07 16:06:21 +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)
|
Func<Product, bool> categoryFileter = prod => prod.Category == "Soccer";
|
||||||
{
|
|
||||||
return prod.Category == "Soccer";
|
|
||||||
};
|
|
||||||
|
|
||||||
decimal total = 0;
|
decimal total = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user