C# Add items to listView
<p>Hello i need help adding items to my listview im using this:</p>

<pre><code>private void btnSubmit_Click(object sender, EventArgs e)
        {
            Person newPerson = new Person()
            {
                Name = txtName.Text,
                Age = txtAge.Text,
                Gender = txtGender.Text,
                Photo = txtPhoto.Text
            };
            string[] row = { txtName.Text, txtAge.Text, txtGender.Text, txtPhoto.Text};
            ListViewItem item = new ListViewItem(row);
            lvPersons.Items.Add(item);
        }
</code></pre>

<p>This is working but i want to use my class person to add and not this line:</p>

<pre><code>string[] row = { txtName.Text, txtAge.Text, txtGender.Text, txtPhoto.Text};
</code></pre>

<p>because using the line above im not making use of this: (i think)</p>

<pre><code>Person newPerson = new Person()
            {
                Name = txtName.Text,
                Age = txtAge.Text,
                Gender = txtGender.Text,
                Photo = txtPhoto.Text
            };
</code></pre>

<p>Can someone help me adding items with my class i have tested with this:</p>

<pre><code>string[] row = { Name, Age, Gender, Photo };
</code></pre>

<p>and this </p>

<pre><code>string[] row = {Person Name, Person  Age, Person  Gender, Person  Photo };
</code></pre>

<p>but both give me errors i need some help</p>