Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は razor で mvc4 を使用しています。ビューにビュー コードがあります。アプリケーションを実行すると、以下のようなエラーが発生します。
CS0135: 'Tuple' が宣言 'System.Tuple' と競合しています
あなたの見解のどこかで、予約された Model キーワードを使用してラムダ式で強く型付けされたヘルパーを使用したと思います。これは例です:
@Html.TextBoxFor(Tuple => Tuple.SomeProperty)
ラムダ式の変数の名前を次のように変更します。
@Html.TextBoxFor(t => t.SomeProperty)