Ask a questionAsk a question
 

AnswerC# tuple 2.0 - Logic to be rewritten in 1.1 framework

  • Monday, June 22, 2009 8:36 PMCSharp Consultant Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

Answers

  • Monday, June 22, 2009 11:26 PMKarel ZikmundMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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

All Replies

  • Monday, June 22, 2009 11:26 PMKarel ZikmundMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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