C
C#3mo 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>();
}
}
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?
2 Replies
Angius
Angius3mo ago
It is one It's a get-only property, but a property nonetheless
Bronya
BronyaOP3mo ago
I see... thx!
Want results from more Discord servers?
Add your server