title: Add " | " in string if where string value is not null or empty
body: <p>I want to add " | " in 3 string if string is not null or empty
  Ex.</p>
  
  <pre><code>-&gt; UserName | Phone | Email
  </code></pre>
  
  <p>in case UserName is null then  <code>Phone | Email</code>
  in case UserName and Email both are null string contain only <code>PhoneNumber</code>.</p>
  
  <p>some thing like this  </p>
  
  <pre><code>var userName =string.IsNullOrEmpty(dir.UserName)?"": dir.UserName+ " | ";
  var userEmail = string.IsNullOrEmpty(dir.UserEmail) ? "" : dir.UserEmail+ " | " ;
  var userphone = string.IsNullOrEmpty(dir.UserPhoneNumber) ? "" :  dir.UserPhoneNumber;
  var disply = userName + userEmail  + userphone;
  </code></pre>
  
  <p>Can it done by linq with less code.</p>