
c#
丙寅
xxxx
展开
-
通过winAPI 获取 smtp服务器ip
class DnsMxUtil { public DnsMxUtil() { } [DllImport("dnsapi", EntryPoint = "DnsQuery_W", CharSet = CharSet.Unicode, SetLastError = true, ExactSpelling = true)] private原创 2014-12-30 10:37:05 · 2281 阅读 · 0 评论 -
C#下JSON字符串的反序列化
C#下JSON字符串的反序列化,一般都是用newtonsoft.json,比较方便。.net当然也有提供相应功能,但觉得比较复杂。 所谓反序列化,就是将一个包含JSON内容的字符串,转换回指定对象(不一定是转换回JSON对象)。 方法是: using Newtonsoft.Json; 。。。 JsonConvert.DeserializeObject(strJso原创 2016-04-30 19:21:38 · 592 阅读 · 0 评论