C#中带有示例的结构 [英] Structure with example in c#

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

问题描述

通过适当的示例,为我简要介绍一下c#中的结构.

Give me a short note on structure in c# with suitable example.

推荐答案

如果要发布作业,至少要使其看起来像您尝试自己做某事!

我们不做您的作业:这是有原因的.在这里,您可以考虑自己被告知的内容,并尝试理解它.也可以在那里帮助您的导师识别您的弱点,并将更多的注意力放在补救措施上.

自己尝试,或学习魔语:您要用它炸薯条吗?"
If you are going to post your homework, at least try to make it look like you have attempted to do something yourself!

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, or learn the Magic Words: "Do you want fries with that?"


同意OriginalGriff.可能有人在采访中向OP提出了这个问题.这完全是基于概念"的问题,如果您通过自我学习来探索,它的知识将永远存在.

Google使自我学习变得非常容易.
Agree with OriginalGriff. Probably some one asked this question to OP in an Interview. This is totally "Concept" based question and it''s knowledge will remain with you lifetime, if you explore it with self learning.

Google has made self learning really easy.
Google Search


您当然应该学习Google,但是这里的"stackoverflow上不错的线程"后面有一些很好的理由说明何时使用struct

http://stackoverflow.com/questions/521298/when-to-use-struct- in-c [^ ]
You should certainly learn to google, but here''s a decent thread on stackoverflow with some good reasoning behind when to use a struct

http://stackoverflow.com/questions/521298/when-to-use-struct-in-c[^]


这篇关于C#中带有示例的结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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