title: Can all 'for' loops be replaced with a LINQ statement?
body: <p>Is it possible to write the following 'foreach' as a LINQ statement, and I guess the more general question can any for loop be replaced by a LINQ statement.</p>
  
  <p>I'm not interested in any potential performance cost just the potential of using declarative approaches in what is traditionally imperative code.</p>
  
  <pre><code>    private static string SomeMethod()
      {
          if (ListOfResources .Count == 0)
              return string.Empty;
  
          var sb = new StringBuilder();
          foreach (var resource in ListOfResources )
          {
              if (sb.Length != 0)
                  sb.Append(", ");
  
              sb.Append(resource.Id);
          }
  
          return sb.ToString();
      }
  </code></pre>
  
  <p>Cheers</p>
  
  <p>AWC</p>