title: Validate email string after split
body: <p>I have the following string:</p>
  
  <pre><code>var proc = new SAPayslips();
  proc.RuleCustomValue = "document.xml|name@domain.com;name@domain.com;name@domain,co.za";
  </code></pre>
  
  <p>The first value is the name of a xml document, and the rest are emails I would like to utilize. </p>
  
  <p>I can successfully split them and use them but I have a problem with the validation. I would like to throw an exception if the email address doesn't contain an @ char.</p>
  
  <pre><code>// retrieves document name
  customValues = _ruleCustomValue.Split('|');
  // retrieves emails
  emails = customValues[1].Split(';');
  
  if(!customValues[1].Contains("@"))
      throw new System.InvalidOperationException("Invalid Email adress,");
  </code></pre>
  
  <p>It doesn't throw the exception when there is no @</p>