locked
how to convert object to tuple RRS feed

  • Question

  • Tuple<string, string> t = new Tuple<string, string>("a", "b");
    object o = t;

    //then how to convert object o back to Tuple ? i can find any method about this kind of convertion.

    Tuesday, October 8, 2013 4:07 PM

Answers

  • Like you do any other "conversion", with a cast:

    t = (Tuple<string, string>)o;
    
    • Marked as answer by Andrea Pirlo Tuesday, October 8, 2013 6:10 PM
    Tuesday, October 8, 2013 4:59 PM