C# Action

简介: Action Delegate   Encapsulates a method that has a single parameter and does not return a value.   https://msdn.

Action<T> Delegate

 

Encapsulates a method that has a single parameter and does not return a value.

 

https://msdn.microsoft.com/en-us/library/018hxwa8(v=vs.110).aspx

相关文章
|
编译器 C#
C#中内置的泛型委托Func与Action
C#中内置的泛型委托Func与Action
202 4
C#基础知识学习之 ✨ 委托的兄弟姐妹们 delegate、Action、Func、Predicate
委托 delegate、Action、Func、Predicate 简单介绍 delegate、Action、Func、Predicate 几种基础的委托结构 几种委托的实例用法 开始分析 delegate使用 Action的用法 Func的用法 简单总结
C#基础知识学习之 ✨ 委托的兄弟姐妹们 delegate、Action、Func、Predicate
通过IL分析C#中的委托、事件、Func、Action、Predicate之间的区别与联系
一直以来都是对于事件与委托比较混淆,而且不太会用。找了个时间,总结了一下,感觉清晰了很多。 先说一下个人理解的结论吧:       delegate是C#中的一种类型,它实际上是一个能够持有对某个方法的引用的类。      delegate声明的变量与delegate声明的事件,并没有本质的区别,事件是在delegate声明变量的基础上包装而成的,类似于变量与属性的关系(在IL代码中可以看到每
1460 0

热门文章

最新文章