// static Regex reUnicodeChar = new Regex(@"[^\u0000-\u00ff]", RegexOptions.Compiled); // return reUnicodeChar.Replace(s, m => string.Format(@"\u{0:x4}", (short)m.Value[0])); protected void Page_Load(object sender, EventArgs e) { String st = "5.21"; double n = 5.21; int.Parse(st); //输出5 // int.Parse(n); //报错 // float a = 2.45f; // Response.Write( int.Parse(a.ToString() )); // Response.Write(HttpUtility.UrlDecode("\u53f3\u5bf9\u9f50")); // string a = Encode1("打开"); // Response.Write(a); // var db = new DataClasses1DataContext(Helper.GetCon()); // mould_order_list item = db.mould_order_lists.First(c => c.id == 5); //Type t = item.GetType(); // System.Reflection.PropertyInfo[] properties = t.GetProperties(); //foreach (System.Reflection.PropertyInfo s in properties) //{ // item.GetType().GetProperty(s.Name).GetValue(item, null); //} }