public class Test
{
public int Id { get; set; }
public string Name { get; set; }
}
List<Test> list = new List<Test>();
list.Add(new Test() { Id=1,Name="123"});
list.Add(new Test() { Id = 2, Name = "234" });
DataTable dt = ExModel<Test>.FillDataTable(list);
举例说明:
Degree d1 = new Degree(103.66,30.06);
Degree d2 = new Degree(104.36,30.46);
var disctance = ExDegree.GetDistance(d1,d2);