随笔分类 - C#
摘要:因为工作需要调用WebService接口,查了下资料,发现添加服务引用可以直接调用websevice 参考地址:https://www.cnblogs.com/peterpc/p/4628441.html 如果不添加服务引用又怎么做呢?于是又去查看怎么根据http协议调用webservice并做了个
阅读全文
摘要:原文:https://www.cnblogs.com/gguozhenqian/p/4288451.html 需要添加引用System.Windows.Forms 1 public class AutoSizeFormClass 2 { 3 //(1).声明结构,只记录窗体和其控件的初始位置和大小。
阅读全文
摘要:方法一: public static int Sum(int m) { int sum = 0; bool bol = true; for (int i=1;i<=m;i++) { if (bol == true) { sum += i; } else { sum -= i; } bol = !bo
阅读全文
摘要://冒泡排序 public static int[] Bubbling(int[] s) { int a; for (int i = 0; i < s.Length-1; i++) { for (int j =i+ 1; j < s.Length; j++) { if (s[i] >s[j]) {
阅读全文
摘要:方法一: public static string Reverse(string name) { if (String.IsNullOrEmpty(name)) { throw new Exception("字符串不能为空!"); } StringBuilder sb = new StringBui
阅读全文

浙公网安备 33010602011771号