题目链接: http://poj.org/problem?id=1797 Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whether there really is a way from the place his customer has buil…
读匿名object对象的属性值 1.定义读object对象值的功能方法 public static class StaticClass { public static string ValueByKey(this object obj,string key) { Type type = obj.GetType(); //可以通过GetProperty取得对象指定的属性信息 PropertyInfo info = type.GetProperty("属性名"); PropertyInfo…