f********f 发帖数: 475 | 1 正在working on a web project. 有个WebGrid的使用问题请教大家。
代码:
WebGrid summaryGrid = new WebGrid(summaryData.assets, canPage: false);
其中summaryData.assets是下面的type:
public class CurrencyAsset
{ public string number { get; set; } //Asset number
public int collections { get; set; }
public int tags { get; set; }
Dictionary denomCounts = new Dictionary();
public int notes { get; set; }
public int barcodes { get; set; }
public int assetIncome { get; set; }
。。。。
}
Debug的时候发现summaryGrid.ColumnNames只有6个items,denomCounts没有在里面。
什么原因呢?
多谢了! | c*********e 发帖数: 16335 | 2 Dictionary 不是string,int之类的简单的变量。
);
【在 f********f 的大作中提到】 : 正在working on a web project. 有个WebGrid的使用问题请教大家。 : 代码: : WebGrid summaryGrid = new WebGrid(summaryData.assets, canPage: false); : 其中summaryData.assets是下面的type: : public class CurrencyAsset : { public string number { get; set; } //Asset number : public int collections { get; set; } : public int tags { get; set; } : Dictionary denomCounts = new Dictionary(); :
|
|