This project has moved. For the latest updates, please go here.

framework 2.0

Aug 19, 2010 at 8:03 PM
i've an app that must only running with framework 2.0. Can i use nyto async with framework 2.0? Regards..
Coordinator
Aug 20, 2010 at 2:23 AM

Most of the types in Nito.Async would be compatible with .NET 2.0, but they are built against 3.5 SP1 mainly for the Action and Func delegates.

       -Steve

Jul 26, 2011 at 9:27 AM

Yes, I made my own version of Nito.Async for .NET 2.0 just adding these delegates to Nito.Async project:

    public delegate void Action();
    public delegate void Action<T1, T2>(T1 arg1, T2 arg2);
    public delegate void Action<T1, T2, T3>(T1 arg1, T2 arg2, T3 arg3);
    public delegate void Action<T1, T2, T3, T4>(T1 arg1, T2 arg2, T3 arg3, T4 arg4);
    public delegate TResult Func<TResult>();
    public delegate TResult Func<T, TResult>(T arg);
    public delegate TResult Func<T1, T2, TResult>(T1 arg1, T2 arg2);
    public delegate TResult Func<T1, T2, T3, TResult>(T1 arg1, T2 arg2, T3 arg3);
    public delegate TResult Func<T1, T2, T3, T4, TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4);

Seems working like a charm :-)