代码改变世界

随笔档案-2013年12月

如何在WebService中重载方法

2013-12-25 15:41 by 假面Wilson, 1851 阅读, 收藏, 编辑
摘要: 1. 本来在WebService中这样写的重载方法,如下所示: [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class DataObjectWebService : System.Web.Services.WebService { [WebMethod(EnableSession = true)] public int Add(int a, int b) { return a + b; 阅读全文
点击右上角即可分享
微信分享提示