C# 람다
![[C#] Extension Method](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb0WiQv%2FbtqCDkmRl5m%2FFK5O93PuaWRzeys8kXzLm0%2Fimg.png)
[C#] Extension Method
1. 식-본문 메소드 using System; class Program { public static int Square(int a) { return a * a; } public static void Main() { Console.WriteLine(Square(3)); } } ① 식 본문 메소드 (expression - bodied method) using System; class Program { /* public static int Square(int a) { return a * a; } */ public static int Square(int a) => a * a; public static void Main() { Console.WriteLine(Square(3)); } } => 메소드의 구현이 단순..