方差(c#4.0),异步(C#5.0) [英] Variance (c# 4.0) , Asynchronous(C # 5.0)

查看:82
本文介绍了方差(c#4.0),异步(C#5.0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C#4.0:

1)Variance(C#4.0)的技术优势是什么

2)如何实际实现C#4.0的Variance功能



C#5.0:

1)并发和异步有什么区别.

C# 4.0:

1) What''s the technical benefit of Variance (C# 4.0)

2) How we can practical implement the Variance feature of C# 4.0



C# 5.0:

1)What''s the difference between concurrency and asynchrony.

推荐答案

关于协方差和协方差,请参见:
http://msdn.microsoft.com/en-us/library/ms173174%28v = vs.100%29.aspx [ ^ ].

这些例子足以满足您的需求吗?如果没有,请自己考虑.基本上,问这样的问题,您就处于适得其反的位置(这不是问题,只需考虑一下),就好像那些需要通过农业和工业"中的应用证明其发明合理的技术的作者一样.如果您首先了解这些功能的功能以及它们如何改善您的工作,那将会更有成效.

第二个问题更糟.您不明白吗:"{0}和{1}之间的区别是什么"这个问题不能成立.如果您不明白,请告诉我们Apple和Apple之间的区别. :-)

首先,您需要了解单词中的实质不是名字.您应该尝试了解并发如何工作以及为什么需要并发.并且,分别尝试了解什么在计算中被视为同步的以及什么是异步的.并了解在不同情况下这一切如何工作.在我们的快速问题与解答中进行所有讨论答案论坛看起来几乎没有意义.这是您需要的一些教育,而教育与名称和定义关系不大,实际上需要更多的了解.如果您在适用的上下文中理解这些概念时遇到一些特殊的问题,欢迎提出问题.

也许您需要查看以下讨论:
如何问一个好问题? [ ^ ].

不要忘记遵循这些合理的规则:
代码项目常见问题解答 [如何使用Google和其他查找编程的技巧帮助 [ ^ ]
在论坛中发布问题的一些准则 [ ^ ])

祝你好运,
—SA
About covariance and contravariance, please see:
http://msdn.microsoft.com/en-us/library/ms173174%28v=vs.100%29.aspx[^].

Are those examples real-life enough for you? If not, think by yourself. Basically, asking such questions, you are taking counter-productive position (which is not a problem, just think about it), as if the authors of the techniques needed to justify their inventions by applications in "agriculture and industry". It would be more productive if you started with understanding what those features do, and though how they could improve your own work.

The second question is worse. Don''t you understand it: the questions "what is the difference between {0} and {1}" cannot be valid. If you don''t get it, please tell us the difference between apple and Apple. :-)

First of all, you need to understand that the essence of the words in not in their names. You should try to understand how concurrency works and why you need it. And, separately, try to understand what is considered as synchronous in computing and what is asynchronous. And understand how it all works in difference cases. Discussion of all that in our Quick Questions & Answers forums looks pretty much pointless. This is some education you need, and education has very little to do with names and definitions, it''s really a lot more of understanding. If you face some particular problem in understanding of these concepts in the context where they work, you are welcome to ask questions.

Perhaps you need to see this discussion:
How to ask a good question?[^].

Don''t forget about following these reasonable rules:
Code Project Questions and Answers FAQ[^]
How to Use Google and Other Tips for Finding Programming Help[^]
Some guidelines for posting questions in the forums[^])

Good luck,
—SA


这篇关于方差(c#4.0),异步(C#5.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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