Clear object variables
<p>This is my class Designation.</p>

<pre><code>class Designation
{
    private string strDesigNo;
    private string strDesigName;
    private string strDesigDesc;

    public string DesigNo
    {
        set { strDesigNo = value; }
        get { return strDesigNo; }
    }
    public string DesigName
    {
        set { strDesigName = value; }
        get { return strDesigName; }
    }
    public string DesigDesc
    {
        set { strDesigDesc = value; }
        get { return strDesigDesc; }
    }
}
</code></pre>

<p>In my user interface form  on click of Save button I assign the values to  my Department class  and then send it to save method in another class as follows.</p>

<pre><code>private void btnSave_Click(object sender, EventArgs e)
{  
    if(!string.IsNullOrEmpty(txtDesignationNumber.Text.Trim().ToString())) 
    { 
        if (!string.IsNullOrEmpty(txtDesignationName.Text.Trim().ToString())) 
        {         
            if(!string.IsNullOrEmpty(txtDesignationtDescription.Text.Trim().ToString())) 
            {
                objDesignation.DesigNo = txtDesignationNumber.Text.Trim().ToString();
                objDesignation.DesigName = txtDesignationName.Text.Trim().ToString();
                objDesignation.DesigDesc=txtDesignationtDescription.Text.Trim().ToString(); 

                objDesignationBLL.insertDesignation(objDesignation);
            }
        }
    }
}
</code></pre>

<p>// What I need is immediately after sending the object values to insertDesignation method,clear all the values.</p>

<p>//That means I need it as follows.</p>

<pre><code>objDesignation.DesigNo ='';

objDesignation.DesigName = '';

objDesignation.DesigDesc = '';
</code></pre>

<p>Is there a good practice to empty these object variable values to null without disposing the object or without setting the object to null?</p>