关于 Dictionary<string,string>,和List<T>在View的使用

在MVC中Dictionary<string,string>如何应用到View页面中呢,例:

<input type="text" name=key value="value">

这样使用,在C中我们就能看到Dictionary<string,string>

如果是类中的一个属性如:

public class aaaa

{

public Dictionary<string,string> D1{set;get;}

}

<input type="text" name=D1.key value="value">

List<T>在View中这样使用:

<input type="text" name=T[0].属性 value="value">

在C中就可以接收到这个类

原文地址:https://www.cnblogs.com/luchunqing/p/3663403.html