title: allow null/empty value for public datatype
body: <p>Uploading a file via web form and parsing its contents to a list how do I allow null or empty value when parsing for C.MN,C.LN, C.Val these three are public datatypes declared like this</p>
  
  <pre><code>Namespace datatypes
  
         Public class Uploads
    {
  
          Public long Mn  {get; set;}
          Public int LN     { get;set    }
           Public int Val    {Get;Set}
      }
  
    List&lt;Uploads&gt; CDU = new List&lt;Uploads&gt;();
                  string[] fields;
  
                  string data = read.ReadLine();
                  while ((data = read.ReadLine()) != null)
                  {
                      if (data.Length != 0)
                      {
                          Uploads C = new Uploads();
                          fields = data.Split(',');
                          C.LN = Convert.ToInt32(fields[0]);
                          C.MN = Convert.ToInt64(fields[1]);                           
                          C.Val = Convert.ToInt32(fields[2]);
                          CDU.Add(C);
  </code></pre>