List<List<TrcLaneInfoData>> trcLaneInfoData = new List<List<TrcLaneInfoData>>();
trcLaneInfoData = LoadTrcLaneData.LoadData("1_08TrcLaneData.csv"); //从CSV文件读出数据到List我要读出trcLaneInfoData里的全部值。。如何循环遍历出来?
其中TrcLaneInfoData为属性类:
namespace TR0010_Test
{
/// <summary>
/// 車線交通情報データ
/// </summary>
public class TrcLaneInfoData
{
#region 属性定義
/// <summary>
/// </summary>
public string TRC_TYPE
{
get;
set;
} /// <summary>
/// </summary>
public string ORGAN_CD
{
get;
set;
} }
trcLaneInfoData = LoadTrcLaneData.LoadData("1_08TrcLaneData.csv"); //从CSV文件读出数据到List我要读出trcLaneInfoData里的全部值。。如何循环遍历出来?
其中TrcLaneInfoData为属性类:
namespace TR0010_Test
{
/// <summary>
/// 車線交通情報データ
/// </summary>
public class TrcLaneInfoData
{
#region 属性定義
/// <summary>
/// </summary>
public string TRC_TYPE
{
get;
set;
} /// <summary>
/// </summary>
public string ORGAN_CD
{
get;
set;
} }
{
foreach(TrcLaneInfoData t in trcLaneInfoData[i])
{}
}
{
foreach(TrcLaneInfoData data in list)
{
string TRC_TYPE = data.TRC_TYPE;
string ORGAN_CD = data.ORGAN_CD;
}
}