관리 메뉴

有希

[C#] Func vs Action 본문

프로그래밍/토막지식

[C#] Func vs Action

有希. 2021. 11. 29. 11:42

Func는 반환값이 있는 함수 delegate.

-> Func<string, string> 이면 string을 인자로 받아서 string을 return 한다. 

Action 반환값이 없는 함수 delegate

-> Action<string, string> 이면 string 2개를 인자로 받는다.

'프로그래밍 > 토막지식' 카테고리의 다른 글

HackerRank Report 보는 방법  (0) 2022.03.30
Listener Pattern  (0) 2021.12.20
UnrealEngine4 크래쉬?  (0) 2021.12.19
namespace  (0) 2021.11.28
클래스 vs 인터페이스  (0) 2021.11.28