System.Reactive 3.0 中缺少 Observable class 和 ToObservable
Observable class and ToObservable missing from System.Reactive 3.0
从 Nuget (https://www.nuget.org/packages/System.Reactive.Core) 安装 3.0 版本的 System.Reactive.Core 后,我无法让 Observable class 编译或出现。我的通用 List<>
中也缺少 ToObservable
扩展方法。
我在我的项目(.NET v4.6.1 C# 控制台项目)中安装并引用了以下包:
System.Reactive.Core (3.0.0.0)
System.Reactive.Interfaces (3.0.0.0)
System.Reactive.Windows.Threading (3.0.0.0)
我正在使用以下内容:
using System.Text;
using System.Threading.Tasks;
using System.Reactive;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Reactive.Concurrency;
using System.Reactive.PlatformServices;
using System.Reactive.Disposables;`
我仍然收到错误消息 "The name 'Observable' does not exist in the current context" 和 "List does not contain a definition for 'ToObservable'..."。
我想要一个 "HelloWorld" 示例,运行 我希望使用 Observable.Range
?
您想Install-Package System.Reactive
Reactive Extensions Main Library combining the interfaces, core, LINQ, and platform services libraries.
通过该软件包,您将获得静态 Observable
class 以及 IEnumerable
.
的扩展
如果您不想安装平台服务,您也可以运行这些以获得您需要的功能。
Install-Package System.Reactive.Core
Install-Package System.Reactive.Linq
从 Nuget (https://www.nuget.org/packages/System.Reactive.Core) 安装 3.0 版本的 System.Reactive.Core 后,我无法让 Observable class 编译或出现。我的通用 List<>
中也缺少 ToObservable
扩展方法。
我在我的项目(.NET v4.6.1 C# 控制台项目)中安装并引用了以下包:
System.Reactive.Core (3.0.0.0)
System.Reactive.Interfaces (3.0.0.0)
System.Reactive.Windows.Threading (3.0.0.0)
我正在使用以下内容:
using System.Text;
using System.Threading.Tasks;
using System.Reactive;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Reactive.Concurrency;
using System.Reactive.PlatformServices;
using System.Reactive.Disposables;`
我仍然收到错误消息 "The name 'Observable' does not exist in the current context" 和 "List does not contain a definition for 'ToObservable'..."。
我想要一个 "HelloWorld" 示例,运行 我希望使用 Observable.Range
?
您想Install-Package System.Reactive
Reactive Extensions Main Library combining the interfaces, core, LINQ, and platform services libraries.
通过该软件包,您将获得静态 Observable
class 以及 IEnumerable
.
如果您不想安装平台服务,您也可以运行这些以获得您需要的功能。
Install-Package System.Reactive.Core
Install-Package System.Reactive.Linq