读匿名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…
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html140/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>…