首页
查找话题
首页
实际开发中ref、out参数有多大作用?
实际开发中ref、out参数有多大作用? 第1页
1
Ivony 网友的相关建议:
理论上来说,out就是多返回值,可以用返回Tuple替代,ref就是传递引用,可以用wrapper对象替代。
但在特定场景,你想要好用性能高,没有值类型和这俩东西,你就做不到。
实际开发中ref、out参数有多大作用? 的其他答案 点击这里
1
相关话题
C# 如何在调用控件时做到 Thread-safe(线程安全)?
为什么没有新的支持底层达到类似C++这种程度,而易用性达到C#的语言出现?
请各位前辈指导下简练代码的思路?
请各位前辈指导下简练代码的思路?
C#/JavaList自定义索引?
c#如何把gbk编码转成unicode编码?
代码结构中Dao,Service,Controller,Util,Model是什么意思,为什么划分?
Java的同步机制比起pthread方式有何优点?
C# 大数据量如何高效率读取解析数据库大字段?
ASP.NET异步改造代码性能不升反降?
前一个讨论
C# 方法能返回结构吗?
下一个讨论
如何看待中国沃通wosign偷偷收购自己的根CA startcom并且签发github.com的证书?
相关的话题
如果同时有两个项目让你选择,一个是使用C++的QT,一个是用JAVA的Android,你愿意往哪个方向发展?请说出您的理由。
有谁是单纯地喜欢编程吗?
为什么 Java 只有值传递,但 C# 既有值传递,又有引用传递,这种语言设计有哪些好处?
为什么大部分程序员都喜欢用黑色界面?
一个浮点数到底是怎么被转换为字符串输出?一个浮点数不精确,那么其输出的值是怎么被确定的呢?
买了《阿里巴巴JAVA开发手册》的人,后悔了吗?
如何看待log4j2远程代码执行漏洞?
C# 异步中Task.Wait的坑? C# Task.Wait为什么不等待就返回?
谁能用通俗的语言解释一下什么是 RPC 框架?
创业公司选择 .NET 技术栈究竟比选 Java/Python 贵多少钱?
用asp.net做网上竞拍系统,在客户端显示当前价格应该怎么实现?大大们给个思路就好
C#中Main方法静态是什么意思?
为什么 Java 和 JS 等语言需要 VM,不能直接操作内存堆栈空间?
项目代码的公共部分该由谁去维护?
C#的Delegate 为什么没在其他主流语言中普及?
.NET类库中HashCodeHelper的实现原理是什么?
为什么unity愿意用c#作为代码语言,而虚幻却使用c++?
在C#中 String.Empty和 "" 有什么区别?
C#填了java哪些坑?java填了C++哪些坑?C++填了C哪些坑?
Java 8 的 stream API 和 C# 的 LINQ 哪个更慢?
为什么有的GIF图片只会播放一遍,而有的会重复播放?
对容器类做改变的设计是否存在天生的错误?
做开发你遇到最无理的需求是什么?
C#中的引用类型在堆栈(内存)中是怎么工作的?
为什么java返回json时用code=0表示成功, 而我观察的php和nodejs都是用1表示成功?
eclipse强转无法输出ASCII码为3的字符(黑桃),而输出unicode值可以?
我的一位老师说,Java 适用于大型软件而 C# 适用中小型软件。这是真的么?
编程该怎么学下去(C#)?
求指教搜索关键词:.net后台如何获取查询数据库得到的结果集以及如何返回给ajax?
软件开发中遇到需要引用的两个库包含的某个同名DLL版本不一致的情况应该如何处理?
服务条款
联系我们
关于我们
隐私政策
© 2024-09-27 - tinynew.org. All Rights Reserved.
© 2024-09-27 - tinynew.org. 保留所有权利