C
C#2mo 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
Angius2mo ago
It is one It's a get-only property, but a property nonetheless
Bronya
Bronya2mo ago
I see... thx!
Want results from more Discord servers?
Add your server