Coffeehouse Post

Single Post Permalink

View Thread: How are you using Tuple in code?
  • User profile image
    Dr Herbie

    Because I'm in the office a little early and there's no one else to distract me, I've been analysing my coding style.

    I have decided that the Tuple<> class is ugly (having to remember which type is 'Item1' and which is 'Item2') and that it should only be used within a class and never used as a result passed out of a public class method or property; I think it's OK to use within a class's private methods, but it's a bit of a 'sausage factory' argument.

    So do you use Tuple<> at all?