情况是这样的 类似以下的情况

1  public void showinchart(List<GetRasterTable.TableItem >  chartlist)//显示到图形
2         {
3             ATableChart.Title = "栅格属性值直方分布图";
4             ATableChartColumeSeries.ItemsSource = chartlist;
5         }

在这里中报了错,说这个chartlist 和这个方法是访问性不一致,比这个方法访问性低,

后来发现是这个GetRasterTable的访问性低,

 1   public   class GetRasterTable
 2     {
 3         
 4 public class TableItem
 5         {
 6             public int oid { get; set; }
 7             public int classvalue { get; set; }
 8             public long classcount { get; set; }
 9         }
10      }

把GetRasterTable改成 Public class 就可以了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2021-04-30
  • 2021-08-26
  • 2021-07-26
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2021-11-15
  • 2021-05-29
  • 2022-02-28
  • 2022-12-23
相关资源
相似解决方案