mirror of
https://github.com/rudollee/LearningMVC.git
synced 2026-08-11 16:32:55 +00:00
Lambda Expression
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user