title: Detecting culture info from a string which has numeric value
body: <p>Here is a <strong>List&lt; string > lstA</strong>;</p>
  
  <p><strong>lstA</strong> may contains value(datatype <strong>string</strong>) like:
  <strong>1st example</strong></p>
  
  <blockquote>
    <p>1</p>
    
    <p>1.00</p>
    
    <p>1000.01 </p>
    
    <p>1,002.98</p>
    
    <p>.........</p>
  </blockquote>
  
  <p>Or <strong>listA</strong> may contain value like: <strong>2nd example</strong></p>
  
  <blockquote>
    <p>1</p>
    
    <p>1,00</p>
    
    <p>1000,01 </p>
    
    <p>1.002,98</p>
    
    <p>.........</p>
  </blockquote>
  
  <p>i am trying to pass this list to a method and it will return me a string "german" or "us"</p>
  
  <p>I am trying this: </p>
  
  <pre><code>private static string ReturnCulture(List&lt;string&gt; lst)
      {
          string cull = "";
          foreach (string s in lst)
          {
              if (s.Contains(".") &amp;&amp; s.Contains(","))
              {
                  cull = "german";
                  break;
              }
              else if (!s.Contains(".") &amp;&amp; s.Contains(","))
              {
                  cull = "german";
              }
              else if (s.Contains(".") &amp;&amp; !s.Contains(","))
              {
                  cull = "us";
                  break;
              }
              else if (!s.Contains(".") &amp;&amp; !s.Contains(","))
              {
                  continue;
              }
          }
  
          return cull;
      }
  </code></pre>
  
  <p>this works fine as for first 3 value. but when i get (<strong>1,002.98</strong>) or ("1.002,98") this both fullfils for german condition. </p>
  
  <p>How to solve this? can globalization class easily detect which culture it is? the given example of <strong>lstA</strong> is realy random. but it will be either as <strong>1st example</strong> or the <strong>2nd</strong>.</p>