MSDN > 論壇首頁 > 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日 下午 08: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日 下午 11: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日 下午 11: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