随笔分类 - C#
Work
摘要:1.新建WCF服务,服务中包含对象 2.部署WCF服务,并将其转换为应用程序 3.通过添加服务引用,使用WCF服务 4.调用对应的对象时需要对应的值设置为True。 参考:https://cloud.tencent.com/developer/ask/73513 对象结构: public class
阅读全文
摘要://Main方法,测试方法运行正常 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ObserverClock { class Program { static...
阅读全文
摘要:这个其实没有任何技术的难度,只是思路稍微转换了一下。 当接到用户的需求,他们希望点击一列,然后另一列也按照期望排序,并且需要保留datagridview自带的点击列头排序功能时, 我的第一反应是拒绝的,这个怎么可以做到,明显相违背的两个操作嘛。 当我百度了一会儿,然后整理了一下思路,我明白了。 解决
阅读全文
摘要:1、添加引用 Microsoft.Office.Interop.Excel; 2、使用命名空间 using Microsoft.Office.Interop.Excel; 3、填充EXCEL单元格方法 private void OpenExcel() { Microsoft.Office.Inter
阅读全文
摘要:主函数调用 1、值参数 2、ref参数 3、out参数 4、params参数 运行结果:
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSTest { class Program { static void Main(string[] args)...
阅读全文

浙公网安备 33010602011771号