这似乎是一个愚蠢的问题,但我下载从这里.NET无功扩展:
http://msdn.microsoft.com/en-us/devlabs/ee794896.aspx哪里是System.CoreEx.dll为Rx.NET
这个简单的例子是给我一个生成错误:
var test = new[] { 1, 2, 4, 5 };
test.ToObservable().Subscribe(Console.WriteLine);
编译器说:
Error 2 The type 'System.Concurrency.IScheduler' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.CoreEx, Version=1.0.2856.104, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. C:\dev\test\RxTests.cs 67 13 Test
System.CoreEx不是组件的同一列表的System.Reactive是在...任何线索?
在此介绍视频中显示为1:07:http://channel9.msdn.com/blogs/j.van.gogh/writing-your-first-rx-application –
感谢Hans。我几乎不能想象在介绍性视频中提及的是良好的文档。现在至少搜索引擎现在可以找到这个SO帖子,为未来的反应程序员:-) –
也刚刚发现,很多linq-ish Rx代码也没有''使用System.Reactive.Linq;'最佳! – gideon