On writting this code into my project i am getting the error that
Error 1 Inconsistent accessibility: field type \'System.Collections.Gene
\'System.Collections.Gene
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.