在方法C#中返回数组 [英] Return Array in a Method C#

查看:848
本文介绍了在方法C#中返回数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从方法返回一个数组?

How can i return an Array from a Method?

推荐答案

正如任何其他引用类型对象一样:返回myArray;



你还没准备好在数独编程上提供答案,以及其他任何一个(这个数独代码出了什么问题? [ ^ ])。



我应该还要补充一点,你不能通过提出这样的问题来学习编程。相反,你需要拿一本手册并从一开始就学习,随时进行简单的练习。当你完成并感到自信时,请回来,我们将很乐意帮助你。但是你自己是个大忙:不早点。



-SA
Exactly as any other reference-type object: return myArray;.

You are not ready to give answers on Sudoku programming, as well as any other (What''s wrong with this Sudoku code?[^]).

I should also add that you won''t be able to learn programming by asking such question. Rather, you need to take a manual and learn from the very beginning, doing simple exercises as you go. When you are done and feel some confidence, please come back, we will gladly help you. But do yourself a big favor: not earlier.

—SA


这篇关于在方法C#中返回数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆