title: Assign Conditional Value to class member of static class
body: <p>Here is my class :   </p>
  
  <pre><code>namespace My.Core
  {
      public static class Constants
      {
          public const string Layer_ver_const = "23";
  
          public const string apiHash_const = "111111";
      }
  }
  </code></pre>
  
  <p>Now i want to set conditional value for <strong>apiHash_const</strong>.<br>
  Mean :   </p>
  
  <pre><code>if(Layer_ver_const == "23")
  {
    apiHash_const = "111111";
  }
  else if(Layer_ver_const == "50")
  {
    apiHash_const = "222222";
  }
  else
  {
    apiHash_const = "333333";
  }
  </code></pre>
  
  <p>How can i do that?</p>