Пример #1
0
            public override void OnNext(IOrderedItem <T> t)
            {
                if (done)
                {
                    return;
                }

                R v;

                try
                {
                    v = mapper(t.Value);
                }
                catch (Exception ex)
                {
                    Fail(ex);
                    return;
                }


                actual.OnNext(t.Replace(v));
            }
Пример #2
0
            public override bool TryOnNext(IOrderedItem <T> t)
            {
                if (done)
                {
                    return(false);
                }

                R v;

                try
                {
                    v = mapper(t.Value);
                }
                catch (Exception ex)
                {
                    Fail(ex);
                    return(false);
                }


                return(actual.TryOnNext(t.Replace(v)));
            }