コード例 #1
0
    static void Main()
    {
        var legacyObject = new Legacy();

        legacyObject.GetItems().ToObservable()
        .Merge(
            Observable.FromEventPattern <IntEventArgs>(legacyObject, "NewItem")
            .Select(e => e.EventArgs.Value))
        .Subscribe(Console.WriteLine);

        Console.ReadLine();
    }