string.IsNullOrEmpty(class_name) // 判断是否为空,返回bool
string.IsNullOrWhiteSpace(modelSiteTemplatePage.content)
if(no.Equals("11")) // 判断是否相同
int.Parse(htArry.ToString())//字符串转int
List<Hashtable>
optionsData = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Hashtable>
>(optionsStr);
@using Newtonsoft.Json;
Hashtable optionsData = JsonConvert.DeserializeObject<Hashtable>(optionsStr);
bool ScribingPrice = false;
bool.TryParse(optionsStr["ScribingPrice"].ToString(), out ScribingPrice);执行SQL语句 - 动软
QWCMS.DBUtility.DbHelperMySQL.ExecuteSql("UPDATE house_project SET `Mode` = '123' WHERE area_id = 2");遍历对象获取值和名称
using System.Reflection;
PropertyInfo[] DepartmentArray = null;
Type objType = item.GetType();
DepartmentArray = objType.GetProperties();
foreach (PropertyInfo v in DepartmentArray)
{
ht.Add(v.Name, v.GetValue(item,null));
}本文为dsg112社区原创文章,转载无需和我联系,但请注明来自dsg112社区. www.dsg112.com
