How to solve the Error: Inconsistent accessibility: parameter type for generic c# interface?

后端 未结 5 846
不知归路
不知归路 2021-01-04 06:25

On writting this code into my project i am getting the error that

Error 1 Inconsistent accessibility: field type \'System.Collections.Gene

5条回答
  •  独厮守ぢ
    2021-01-04 06:54

    You can't use access modifier two times. if you used public class than you should not use the instance public. public partial class Record : ContentPage { List datas = new List() { I used record class public but not list.

提交回复
热议问题