title: looking for string split and update each property
body: <p>I have a class "DataCls" and from some other source I get "Message" string with "propertyName:value" format.</p>
  
  <pre><code>public class DataCls
  {
      public string Message { get; set; }
      public string Priority { get; set; }
      public DateTime Time { get; set; }
      public string Tag { get; set; }
  }
  
  dataCls.Message = "[AE][1W] Message:Console Station is not available Priority:Info Time:Sep 21 2016  1:13PM Tag:/System Components/R431ESV/Stations/Console Stations/CStn01";
  </code></pre>
  
  <ol>
  <li>Message: sample message</li>
  <li>Priority: Info</li>
  <li>Time: Sep 21 2016  1:13PM</li>
  <li>Tag: /abc/pqr/xyz</li>
  </ol>
  
  <p>Now I need to split this string and update each property of class "DataCls" with above value. Please suggest!!!</p>
  
  <p>I tried with with below, but didn't work,</p>
  
  <pre><code>static void Main(string[] args)
      {
          DataCls dataCls = new DataCls();
  
          dataCls.Message = "[AE][1W] Message:sample message Priority:Info Time:Sep 21 2016  1:13PM Tag:/abc/pqr/xyz";
  
          dataCls.Message = dataCls.Message.Split(':')[1].ToString();
          dataCls.Priority = dataCls.Message.Split(':')[2].ToString();//error
      }
  </code></pre>