What is the difference between Lambdas and Delegates?
What is the difference between Lambdas and Delegates?
Here is the difference between Lambdas and Delegates in C#:
Where, Select, OrderBy, etc.Func<int, int> square = x => x * x;
int result = square(5); // result = 25
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.