David L. Hansen
asked on
Can a VS 4.0 framework app consume a VS 4.5 framework DLL?
I am building a DLL for my office and it needs to use Async (a 4.5 framework tool). Many of our programs that use this DLL are 4.0 framework apps. So can I put async in the DLL and still have those programs use the methods that have async in them (BTW, no 4.5 objects will be returned to the calling program)?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This is total speculation, but the async and await keywords are just syntactic sugar for the compiler to create a state machine for you. Since async methods return Task<T>, and Task was introduced in .NET 4.0, it may be possible. It could be worth putting together a quick throw-away project to test.
ASKER
I'm thinking that the machine running the consuming program would implement the DLL alright, even if that program was a 4.0 framework program, so long as the 4.5 framework was installed on that machine.
Sorry for the delay in responding guys.
Sorry for the delay in responding guys.
ASKER
Thank you very much