摘要: <summary> 生成json数据 </summary> <param name="query"></param> <returns></returns> private string BuildJsonForOrganization(IQueryable<Organization> query) { StringBuilder Json = new StringBuilder(); if (query.Count() > 0) { Json.Append("[" 阅读全文
posted @ 2013-04-26 14:04 soulfree 阅读(372) 评论(0) 推荐(0) 编辑
摘要: /// /// 根据方法名称反射调用相应的方法 /// /// public string InitCombox(string method) { Type type = this.GetType(); MethodInfo m = type.GetMethod(method); if (m == null) throw new Exception("method is null"); try { //如果需要传递参数 //object[] objs = { "参数1", "参数2", "参数3" };//objs 阅读全文
posted @ 2013-04-26 11:31 soulfree 阅读(329) 评论(0) 推荐(0) 编辑