title: Is there any function that compares lengths of strings accordingly in C# (.NET)?
body: <p><strong>I'm sorry, didn't know that Length is computed at construction time!!</strong></p>
  
  <p>I got 200 char long string A, 5 char long string B
  If I do</p>
  
  <pre><code> int Al = A.length;
   int Bl = B.length;
  </code></pre>
  
  <p>and compare it -- all seems fine BUT If I do this few million times to
   calculate something, it's too expensive for the thing I need.</p>
  
  <p>Much simpler and neater way would be some function that can compare two strings and tell me when the other is AT LEAST same as the other.
  Something like (compare_string_lengths(stringA,stringB) -> where string B must be at least as long (chars) as string A to return TRUE for function.</p>
  
  <p>Yes,
  I know that the function wouldn't have any idea which string is shorter, but if lengths of the two strings would be counted in parallel so when one exceeds the other, function knows what to "answer".</p>
  
  <p>Thanks for any hints.</p>