convert string data array to list
<p>i have an string data array which contains data like this</p>

<pre><code>5~kiran
2~ram
1~arun
6~rohan
</code></pre>

<p>now a method returns an value like string [] data</p>

<pre><code> public string [] names()
    {
        return data.Toarray()
    }

    public class Person 
    { 
        public string Name { get; set; } 
        public int Age { get; set; } 
    }



 List&lt;Person&gt; persons = new List&lt;Person&gt;(); 
    string [] names = names();
</code></pre>

<p>now i need to copy all the data from an string array to an list
and finally bind to grid view </p>

<pre><code>gridview.datasoutrce= persons
</code></pre>

<p>how can i do it. is there any built in method  to do it</p>

<p>thanks in advance</p>

<p>prince</p>
