javascript > c# conversion help

i’ve looked through the page on syntax differences but i can’t for the life of me figure out how to convert this.

public function get itemNA () : String

i assumed it would be string = get itemNA () but that and a bunch of other variations i tried aren’t working.

That “get” keyword essentially allows you to call a function but treat it like a member variable. Here is the equivalent setup in C#

public class Person
    //default constructor 
    public Person()

    private string _Name;
    public string Name
        //set the person name
        set { this._Name = value; }
        //get the person name 
        get { return this._Name; }