using System; using TDengineDriver; using System.Runtime.InteropServices; using System.Text; using System.Collections.Generic; namespace Test.UtilsTools.ResultSet { public class ResultSet { private List resultMeta; private List resultData; // private bool isValidResult = false; public ResultSet(IntPtr res) { resultMeta = UtilsTools.GetResField(res); resultData = UtilsTools.GetResData(res); } public ResultSet(List metas, List datas) { resultMeta = metas; resultData = datas; } public List GetResultData() { return resultData; } public List GetResultMeta() { return resultMeta; } public int GetFieldsNum() { return resultMeta.Count; } } }