© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
3 replies
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;
public int Count => Data.Count;
into property?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ How to make this program into GUI application?
C#CC# / help
3y ago
❔ How to make property auto-increment?
C#CC# / help
4y ago
❔ Property vs field?
C#CC# / help
3y ago
how to make this into a embed message with webhook
C#CC# / help
3y ago