Creates an immutable property




    C# recipes

    The _name field is private and readonly, which means that it cannot be changed. The public keyword indicates that this field is visible to the outside world.

    Shortcut: propi

    private readonly string _name;
    public  Name => ;
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.