Tuple<string, List<MyObject>>is an option. However, if you intend to use this pairing a lot, I would advise you to create a custom class so that it is more explicit - either as you did, or output List<MyObject>and add the line as a property.
" ", :
var t = new { TheString = "", TheList = new List<MyObject>() };
var list = t.TheList;
var s = t.TheString;
. IntelliSense , .
, , ExpandoObject System.Dynamic:
var expando = new ExpandoObject();
expando.List = new List<MyObject>();
expando.TheString = "";
IntelliSense DLR. ExpandoObject IDictionary<string, object> , ...
var dict = (IDictionary<string, object>)expando;
....
- . , . , ExpandoObject , , . , , , , ...