 <p>Make firstName as a public variable with getter/setter added, then you will be able to access the properties, By default, if no access modifier is present then CLR treats it as Private </p> <pre><code>public string FirstName { get; set; } </code></pre>