title: Get Index of First non-Whitespace Character in C# String
body: <p>Is there a means to get the index of the first non-whitespace character in a string (or more generally, the index of the first character matching a condition) in C# without writing my own looping code?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>By "writing my own looping code", I really meant that I'm looking for a compact expression that solves the problem without cluttering the logic I'm working on.</p>
  
  <p>I apologize for any confusion on that point.</p>