C# Return type error

后端 未结 2 659
天命终不由人
天命终不由人 2021-01-26 07:40

So here is my code:

public class landen
{
    public static List Lijst()
    {
        List lijst = new List
        {
               


        
2条回答
  •  深忆病人
    2021-01-26 08:22

    This sort of error occurs if you have a custom List class, and it is less accessible than the method itself.

    Consider making your custom list public. That should solve the problem.

提交回复
热议问题