Odeslat dotazOdeslat dotaz
 

OdpovědětC# tuple 2.0 - Logic to be rewritten in 1.1 framework

  • 22. června 2009 20:36CSharp Consultant Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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

Odpovědi

  • 22. června 2009 23:26Karel ZikmundMSFT, ModerátorUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     Odpovědět
    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

Všechny reakce

  • 22. června 2009 23:26Karel ZikmundMSFT, ModerátorUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     Odpovědět
    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