What is the best way to return two lists in C#?

前端 未结 5 2268
情话喂你
情话喂你 2020-12-31 05:12

I am almost embarrassed to ask this question, but as a long time C programmer I feel that perhaps I am not aware of the best way to do this in C#.

I have a member fu

5条回答
  •  别那么骄傲
    2020-12-31 05:53

    Return this:

    public class MyTwoLists {
        public List ListOne {get;set;}
        public List ListTwo {get;set;}
    }
    

提交回复
热议问题