title: Unexpected pharantesis error in asp .net mvc helper function
body: <p>I've confronted to an unexpected pharantesis error in asp .net mvc helper function. Everything seems ok, it gives an "}" error.</p>
  
  <pre><code>@helper GetirIcerikStil(string anaMenuKontrol, string solMenuKontrol, string sekmeKontrol, UrlHelper url){
  var d = DateTime.Now;
  var tazele = d.ToLongTimeString();
  
  anaMenuKontrol = BuyutIlkHarf(anaMenuKontrol);
  solMenuKontrol = BuyutIlkHarf(solMenuKontrol);
  sekmeKontrol = BuyutIlkHarf(sekmeKontrol);
  
  var href1 = string.IsNullOrEmpty(anaMenuKontrol) ? "" : @url.Content("~/_Docs/SoruCevap/" + anaMenuKontrol + "/_Stil/Index.less?" + @tazele);
  var href2 = string.IsNullOrEmpty(solMenuKontrol) ? "" : @url.Content("~/_Docs/SoruCevap/" + anaMenuKontrol + "/" + solMenuKontrol + "/_Stil/Index.less?" + @tazele);
  var href3 = string.IsNullOrEmpty(sekmeKontrol) ? "" : @url.Content("~/_Docs/SoruCevap/" + anaMenuKontrol + "/" + solMenuKontrol + "/" + sekmeKontrol + "/_Stil/Index.less?" + @tazele);
  
  if (string.IsNullOrEmpty(href1))
  {
      &lt;link href="@href1" class="icerikStil anaMenu" rel="stylesheet" type="text/css" /&gt;
  
      if (string.IsNullOrEmpty(href2))
      {
          &lt;link href="@href2" class="icerikStil solMenu" rel="stylesheet" type="text/css" /&gt;
  
          if (string.IsNullOrEmpty(href3))
          {
              &lt;link href="@href3" class="icerikStil sekme" rel="stylesheet" type="text/css" /&gt;
          }
      }
  
      &lt;link href="#" id="icerikStilPozisyonu" /&gt;
  }
  }
  </code></pre>
  
  <p>Resulting error in browser for line 32 is:</p>
  
  <pre><code>    Compiler Error Message: CS1513: } expected
  
  Source Error:
  
  
  Line 30:         
  Line 31:         &lt;link href="#" id="icerikStilPozisyonu" /&gt;
  Line 32:     }
  Line 33: }
  Line 34:
  </code></pre>