To Read a double value out of a longer C# string
<p>I have a string that goes like "-23.45m / abc = 53.02m/s" that I want to take apart.  You'd think there was an easy way in .net to get the -23.45 (like using a built-in float interpreter) and tell me that the rest of the string starts at 'm'.  </p>

<p>In C++ I would use </p>

<pre><code>double num;
wchar_t* input_text = L"-23.45m / abc = 53.02m/s";
if (swscanf(input_text, L"%lf%n", &amp;num, &amp;count) == EOF)
  return false;
pos += count;
</code></pre>
