摘要: public static string ClientIP() { string result = String.Empty; result = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (result != null && result != String.Empty) { //可能有代理 if (result.IndexOf(".") == -1) //没有“.”肯定是非... 阅读全文
posted @ 2012-07-21 17:00 划破黑夜 阅读(641) 评论(3) 推荐(0) 编辑
摘要: 只要参数是值类型 就会自动 给我多加对应的布尔型参数而引用类型的没问题 查来查去 发现是 WCF 默认序列化 (接口中)用的是 DataContractSerializer把 接口中 默认的DataContractSerializer(隐藏的)换成XmlSerializerFormat 即可 阅读全文
posted @ 2012-07-21 09:54 划破黑夜 阅读(478) 评论(0) 推荐(0) 编辑