C#C
C#16mo ago
Bronya

How to make this Field into Property

public class MyColumn
{
    public List<string> Data { get; set; }
    public int Count => Data.Count;

    public MyColumn()
    {
        Data = new List<string>();
    }
}

anyone know how to make public int Count => Data.Count; into property?
Was this page helpful?