List Tuple more than 8 items

前端 未结 3 1086
清歌不尽
清歌不尽 2021-01-02 17:41

Can anyone help the following List Tuple more than 8 elements is not working:

List

        
3条回答
  •  南笙
    南笙 (楼主)
    2021-01-02 18:01

    I don't really understand why myself, but the code will work when you use new Tuple<> instead of Tuple.Create:

    tpl.Add
    ( new Tuple>
      ( 1
      , "ABC"
      , 100.123
      , "XYZ"
      , 1
      , "ABC"
      , 100.123
      , Tuple.Create(100, "My Rest Item")
      )
    );
    

提交回复
热议问题