I am new to .NET. My previous job was a PLC programmer. I have an old application in which I used the Reactive Extension for .NET.
I do not support this application for a long time. Now I have downloaded the new version for the Reactive Extension, but I have a problem using the old code.
I know some parts in Rx have been changed.
Here is the problem of the old code:
Observable.FromEvent<PropertyChangedEventArgs>(this, "PropertyChanged") .Where(e => e.EventArgs.PropertyName == "Nick") .Select(_ => this.Nick) .Where(text => text.Length > 3) .Do(LoadUser) .Throttle(TimeSpan.FromSeconds(3000)) .Subscribe(LoadUser);
I got the following exceptions:
Error 3 Argument 1: cannot convert from 'Spirit.ViewModels.AddFriendViewModel' to 'System.Action<System.Action<System.ComponentModel.PropertyChangedEventArgs>>' E:\C
I do not know which method I should use in the new version for the same functionality.
Thanks for the advice.
source share