摘要: 契约的设计1namespaceMyService2{3[ServiceContract]4publicinterfaceIPerson5{6[OperationContract]7stringSay(stringsay);8}9[ServiceContract]10publicinterfaceIStudent:IPerson11{12[OperationContract]13stringStudy(stringstudy);14}15}契约的服务类型1namespaceMyService2{3publicclassService1:IStudent4{5publicstringStudy(s 阅读全文
posted @ 2012-09-22 22:47 HelloCG 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 一、服务端:新建WCF服务应用程序1,服务契约1[ServiceContract]2publicinterfaceICalculator3{4[OperationContract(Name="AddInt")]5intAdd(intarg1,intarg2);67[OperationContract(Name="AddDouble")]8doubleAdd(doublearg1,doublearg2);9}2,实现契约的服务类型1namespaceMyService2{3publicclassService1:ICalculator4{5publicin 阅读全文
posted @ 2012-09-22 11:49 HelloCG 阅读(959) 评论(1) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2011-01-06 20:05 HelloCG 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 前台代码:[代码]后台代码:[代码] 阅读全文
posted @ 2010-04-21 12:28 HelloCG 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 如图: 阅读全文
posted @ 2010-03-25 16:50 HelloCG 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 如图:可以在数据表格中进行直接的内容输入。 阅读全文
posted @ 2010-03-25 16:44 HelloCG 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 如图: 阅读全文
posted @ 2010-03-25 16:16 HelloCG 阅读(475) 评论(1) 推荐(0) 编辑
摘要: [代码]输出结果:[代码] 阅读全文
posted @ 2010-03-24 16:23 HelloCG 阅读(261) 评论(0) 推荐(0) 编辑
摘要: [代码]输出结果:[代码] 阅读全文
posted @ 2010-03-24 16:20 HelloCG 阅读(235) 评论(0) 推荐(0) 编辑
摘要: xml:01.xmlCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<?xmlversion="1.0"encoding="utf-8"?>2<Menus>3<Menutitle="常用网址">4<itemn... 阅读全文
posted @ 2010-03-24 16:13 HelloCG 阅读(290) 评论(0) 推荐(0) 编辑