我在c#中有数据如下,
public class TabularData<TRow, TCol>
{
public TabularData()
{
Data = new Dictionary<ComplexPropertyName, Object>();
}
public TableHeader<TRow>[] RowHeader { get; set; }
public TableHeader<TCol>[] ColumnHeader { get; set; }
public Dictionary<ComplexPropertyName, Object> Data { get; set; }
}
public class TableHeader<TId>
{
public TId Id { get; set; }
public string DisplayName { get; set; }
public string PropertyName { get; internal set; }
public bool HasChildren { get; set; }
public LevelValue LevelValue { get; set; }
public Object Total { get; set; }
public Tuple<object, object> SummaryTracker { get; set; }
}
访问以下数据
private void ProcessDataNew(TabularData<long, long> data, string[] rowHdrTitles)
{
// Process data here...
}
我想将metedata与数据分开来处理它。
Ex:在客户端,我们使用序列化器将metedata分隔如下,
我们怎样才能使用普通的c#?