C# passing values from one method to another

后端 未结 3 1848
北荒
北荒 2021-01-17 01:38

I am getting an error code in the result. code below. I am basically trying to get a data set from SingleColumn method and use it in SMA method. Bu

3条回答
  •  臣服心动
    2021-01-17 02:15

    You should use static variable.

    private static IEnumerable result;
    

    and then in method SingleColumn asign columnQuery.ToList() to this variable

提交回复
热议问题