Coffeehouse Post

Single Post Permalink

View Thread: How are you using Tuple in code?
  • User profile image
    Ion Todirel

    , Adam​Speight2008 wrote

    @Dr Herbie: I'm sure you can return anonymous types, if the return type in the signature is T.

    Subsequent variables have to be typed T or var, the same goes for input parameters.

     But in practice it usually better to have a "concrete" type instead.

    That's not how templates generics works in C#, you have to declare the contract prior.