Converting String to class
<p>I have a class <code>AuthUser</code></p>

<pre><code>public class AuthUser
{
    public int UserID { get; set; }
    public string UserNo { get; set; }
    public string UserName { get; set; }
    public string Password { get; set; }
}
</code></pre>

<p>I have converted the class to a <code>string</code>.</p>

<pre><code>AuthUser au = new AuthUser();
//dtUserDetails is a data table
if (dtUserDetails.Rows.Count &gt; 0)
{
    DataRow DR = dtUserDetails.Rows[0];
    au.UserID = Convert.ToInt32(DR["UserID"].ToString());
    au.UserNo = DR["UserNo"].ToString();
    au.UserName = DR["UserName"].ToString();
    au.Password = DR["Password"].ToString();
}
string userData = au.ToString();
</code></pre>

<p>Now I need to convert above <code>UserData</code> String back to object type to retrieve data. How can I do this?</p>
