I have the following working code snippet in VS2017 c#7
using system.Reactive.Linq
var combine = Observable.CombineLatest(o1, o2, (v1,v2)=> (v1,v2));
I would like to do
using static System.Reactive.Linq.Observable
var combine = CombineLatest(o1, o2, (v1,v2)=> (v1,v2));
but I get the error that
Severity Code Description Project File Line Suppression State Error CS0411 The type arguments for method '
Observable.CombineLatest<TSource>(params IObservable<TSource>[])
' cannot be inferred from the usage. Try specifying the type arguments explicitly.
which is strange as I thought that using static was just syntactic sugar. Can this be made to work?