-1

ChartExというクラスがあります

 public class ChartEx
{
    public string name { get; set; }
    public List<int> data { get; set; }
}

コードビハインドから呼び出そうとしています

List<int> lstXaxis = new List<int>() { 9, 10, 11, 12 };
List<ChartEx> lstseries = new List<ChartEx>();

認識できList<int> lstXaxis = new List<int>() { 9, 10, 11, 12 };ますが、エラーが表示されますList<ChartEx> lstseries = new List<ChartEx>();

4

1 に答える 1

1

namespace.ChartEx を使用してみてください。namespace は、クラスがある appcode ファイルの名前空間です。

于 2013-07-31T18:33:06.083 に答える