CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of rx
C#
var xs = Observable.Interval(TimeSpan.FromSeconds(0.5)).Publish().RefCount();
var zs = xs.Buffer(xs.Sample(TimeSpan.FromSeconds(1.5)), x => xs.Skip(5).Take(1));
by bnaya   December 01, 2011 @ 9:19am
Tags: rx
58 Views
no comments
 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reactive.Linq;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Threading.Tasks;
 
namespace Sela.Samples
by bnaya   October 23, 2011 @ 5:18am
Tags: rx, tpl
96 Views
no comments
 
C#
public static IObservable<EventPattern<PropertyChangedEventArgs>> WhereProperty<TProperty>
     (this IObservable<EventPattern<PropertyChangedEventArgs>> propChangedEvent, Expression<Func<TProperty>> property)
 {
     return
         propChangedEvent.Where(
             pce => pce.EventArgs.PropertyName == property.GetMemberInfo().Name);
 }
 
 public static IObservable<EventPattern<PropertyChangedEventArgs>> PropertyChanges(this INotifyPropertyChanged notifier)
 {
by Doug Paice   September 06, 2011 @ 8:08pm
77 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate