摘要:
引入System.Runtime.Serialization.Json命名空间使用 DataContractJsonSerializer类实现序列化序列化类:PeopleCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> public class People { public int Id { get; set; } public string Name { get; set... 阅读全文
摘要:
public static class ObjectExtension { public static T Convert<T>(this object target) { T result = default(T); if (target != null) { result = (T)System.Convert.ChangeType(target, typeof(T), CultureInfo.InvariantCulture); } ... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices; //这个肯定要的 namespace WindowsApplication1{ class win32API { public const int OPEN_PROCESS_ALL = 2035711; public const int PAGE_READWRITE = 4; public const int PROCESS_CREAT... 阅读全文
摘要:
原贴地址:http://www.soaspx.com/dotnet/service/service_20120720_9432.html问题如下图:网上有关于这个处理办法,说道:VS2010在更新了SP1后,会在开机时自动启动一个服务,占用WAMP的80端口,导致WAMP无法正常启动Apache。提示信息:Your port 80 is actually used by :Server: Microsoft-HTTPAPI/2.0Press Enter to exit...解决办法如下: 1. 进入控制面板→管理工具→服务。 2. 停止[Web 部署代理服务],并设置为手动或禁用状态,以防止下 阅读全文