lenmom

博客园 首页 新随笔 联系 订阅 管理

2018年6月27日 #

摘要: https://www.cnblogs.com/startpoint/p/4194052.html https://www.cnblogs.com/lyl6796910/p/7613664.html https://www.cnblogs.com/dubing/p/3878591.html http 阅读全文
posted @ 2018-06-27 21:22 老董 阅读(273) 评论(0) 推荐(0)

摘要: Recently I’ve found out that we can easily cause a memory leaks in our .net application by improper usage of the dependency injection container Autofa 阅读全文
posted @ 2018-06-27 19:03 老董 阅读(346) 评论(0) 推荐(0)

摘要: 首先:两者都是按地址传递的,使用后都将改变原来参数的数值。 其次:ref可以把参数的数值传递进函数,但是out是要把参数清空,就是说你无法把一个数值从out传递进去的,out进去后,参数的数值为空,所以你必须初始化一次。这个就是两个的区别,或者说就像有的网友说的,ref是有进有出,out是只出不进。 阅读全文
posted @ 2018-06-27 13:26 老董 阅读(170) 评论(0) 推荐(0)