Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Rx Workshop: Reactive Coincidence
Jul 20, 2011 at 10:45 AMI think my solution is close to the optimum!?
But I had to modify the subscibtion from deltas to absolute points.
var query = mouseDown.Join(mouseMove, l => mouseUp, r => Observable.Empty<Point>(),(l,r)=> Subtract(r,l)); query.Subscribe(pos=> { Canvas.SetLeft(image, pos.X); Canvas.SetTop(image, pos.Y); });Rx Workshop: Reactive Coincidence
Jul 19, 2011 at 11:24 AMAm I allowed to post the solution of the challange?
Benny
Nikolai Tillmann: Moles - Replace any .NET method with a delegate
Feb 23, 2010 at 3:41 AMNice, but have a look on F# Object Expressions. I already use F# in my Unit-Tests for mocking interfaces.
With Object Expression you could write something like :
let obj1 = { new System.Object() with member x.ToString() = "F#" }or
let personComparer = { new IComparable<Person> withbut you cannot write this, because DateTime is sealed.
let now = { new System.DateTime() with member x.Now() = new DateTime(2000,1,1) }Benny
member this.Compare(a,b) = if a.First > b.First then 1 elif a.First = b.First then 0 else 0 }