ASP.NET MVC3 Razor ビューで作成したいのですTryGetValue
が、コードは次のようになります。
@var out;
@Model.Dic.TryGetValue(1, out);
<script type="text/javascript">alert(@out);</script>
エラーが発生しましたがCS0839: Missing Argument.
、理由がわかりません
編集 今、私はそれを次のように変更します:
@var myOut;
@Model.Dic.TryGetValue(1, out myOut);
<script type="text/javascript">alert(@myOut);</script>
今私は得る:"var" is not available in this context.