Home

Different behavior for Observable<T> in raw Dump and DumpContainer

These two code should has same function (System.Reactive need to installed):
var observable1 = Observable.Interval(TimeSpan.FromSeconds(1.0));
new { Test = observable1 }.Dump();
var observable2 = Observable.Interval(TimeSpan.FromSeconds(1.0));
var dc = new DumpContainer().Dump();
dc.Content = new { Test = observable2 };
But only the first one can dump the observed value. Should the second one have the same behavior? Otherwise, DumpContainer will be in this scenario.

Comments

Sign In or Register to comment.