Skip to content

Instantly share code, notes, and snippets.

View abanoub-asaad's full-sized avatar

Abanoub Asaad abanoub-asaad

  • Ain Shams University
  • Egypt
View GitHub Profile
@abanoub-asaad
abanoub-asaad / Lampda.cs
Last active February 4, 2022 10:21
Lampda Expressions
public class Lampda
{
/*
You will see two classes have two code snippets to see how lampda is working here.
Notes:
Consider you have an array a = {1, 2, 3, 4}
- So Reverse will change the order of the array and it will be like that {4, 3, 2, 1}
- And Aggregate is working by this way:
Aggregate((previousValue, next) => do whatever)