Microsoft 开发人员网络 > 论坛主页 > Building Development and Diagnostic Tools for .Net > C# tuple 2.0 - Logic to be rewritten in 1.1 framework
提出问题提出问题
 

已答复C# tuple 2.0 - Logic to be rewritten in 1.1 framework

  • 2009年6月22日 20:36CSharp Consultant 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Hi,

    We are into Reports development using C# and PDF Library (for front end). The development is done in Visual studio 2005/2.0 framework. Now since the production has 1.1 framework, I was asked to "downgrade" to VS 2003.
    The problem is we have Tuple/generics in 2.0. After I recreated the project in 1.1, it is giving me all kinds of errors.

    Can you please help me out, point me in the direction of how to recreate the tuple logic in VS 2003?

    Thank you

答案

  • 2009年6月22日 23:26Karel ZikmundMSFT, 版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     已答复
    Which Tuple class do you mean? The only Tuple around I know about will be part of next .NET Framework 4.0 release (see Tuple class pre-release documentation).

    In general, if some feature was new in 2.0 and it is not part of 1.1 (e.g. generics) and you need it on 1.1, then you will have to work around it. For example, create your own Tuple or use object with casting instead of having a generic class. There is no simple easy automated way how to "downgrade" your sources or binaries from 2.0 to 1.1.

    -Karel

全部回复

  • 2009年6月22日 23:26Karel ZikmundMSFT, 版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     已答复
    Which Tuple class do you mean? The only Tuple around I know about will be part of next .NET Framework 4.0 release (see Tuple class pre-release documentation).

    In general, if some feature was new in 2.0 and it is not part of 1.1 (e.g. generics) and you need it on 1.1, then you will have to work around it. For example, create your own Tuple or use object with casting instead of having a generic class. There is no simple easy automated way how to "downgrade" your sources or binaries from 2.0 to 1.1.

    -Karel