12 2012 档案
摘要:public static class JsonHelper { /// <summary> /// JSON序列化 /// </summary> public static string JsonSerializer<T>(T t) { //so DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(T)); MemoryStream ms = new Memory...
阅读全文
摘要:private int[] GetIntArrayFromStr(string historyLeaderId) { var strArray= !string.IsNullOrEmpty(historyLeaderId) && historyLeaderId.Contains(",") ? historyLeaderId.Split(',') : new string[2] {"0", "0"}; return Array.ConvertAll<string, int>(strArray,
阅读全文