Coffeehouse Post

Single Post Permalink

View Thread: How are you using Tuple in code?
  • Bigfellahull

    I find them useful when using a composite key dictionary.

    var dictionary = new Dictionary<Tuple<int, string>, string>();
    dictionary.Add(Tuple.Create(3, "SomeKey"), "Value");