释蝉

博客园 首页 新随笔 联系 订阅 管理

2021年11月2日 #

摘要: using System; using System.Collections.Generic; using System.Data.SqlClient;//引用数据库客户端 using System.Linq; using System.Text; using System.Threading.Ta 阅读全文
posted @ 2021-11-02 18:10 释蝉 阅读(33) 评论(0) 推荐(0) 编辑

2021年7月27日 #

摘要: public static string GetTicket(string AccessToken) { //类型 string Type = "jsapi"; string strurl = string.Format("https://api.weixin.qq.com/cgi-bin/tick 阅读全文
posted @ 2021-07-27 13:53 释蝉 阅读(139) 评论(0) 推荐(0) 编辑

摘要: /// <summary> /// 获取Access token /// </summary> /// <param name="appid"></param> /// <param name="secret"></param> /// <returns></returns> public stat 阅读全文
posted @ 2021-07-27 13:52 释蝉 阅读(184) 评论(0) 推荐(0) 编辑

2021年7月26日 #

摘要: 看了下网上关于.net webAPI 的案例全是坑 验证成功了不被微信服务器接收 微信客服有找不到,提问也没人回 自己测试好几个小时 终于发现返回结果只要个string 双引号都不用加 public readonly string Token = "哈哈哈"; //主方法 public string 阅读全文
posted @ 2021-07-26 13:42 释蝉 阅读(65) 评论(0) 推荐(0) 编辑

2021年4月27日 #

摘要: 百度网盘:https://pan.baidu.com/ 上传容易下载难,不是SVIP下载没速度 蓝奏网盘:https://www.lanzous.com 空间不限,单文件最大100M,下载速度很快 谷歌网盘: https://drive.google.com/ 个人免费15G,教育版无限空间,团队盘 阅读全文
posted @ 2021-04-27 09:18 释蝉 阅读(5622) 评论(0) 推荐(0) 编辑

2021年1月5日 #

摘要: C#批量删除注释与空行 方法: 第一步:打开vs2019,使用Ctrl+F快捷键,打开查询替换窗口 第二步:在‘查找选项’中,勾选‘使用’‘正则表达式’ 第三步:在‘查找内容’中,填写正则表达式[\t]*//[^\n]*\n 第四步:‘替换为’空,什么都不填写 第五步:单击‘全部替换’按钮,完成整个 阅读全文
posted @ 2021-01-05 17:44 释蝉 阅读(319) 评论(0) 推荐(0) 编辑

2020年10月22日 #

摘要: using Dapper; using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Text; using Microsoft.Extensio 阅读全文
posted @ 2020-10-22 16:03 释蝉 阅读(95) 评论(0) 推荐(0) 编辑

2020年4月1日 #

摘要: namespace ConsoleApp4 { class Client { static void Main(string[] args) { // 南昌工厂制作南昌的鸭脖和鸭架 AbstractFactory nanChangFactory = new NanChangFactory(); Ya 阅读全文
posted @ 2020-04-01 15:09 释蝉 阅读(131) 评论(0) 推荐(0) 编辑

摘要: namespace ConsoleApp6 { class Program { static void Main(string[] args) { FactoryBase shanghai=new ShangHiaFactory(); YaBo yaBo = shanghai.CreateYaBo( 阅读全文
posted @ 2020-04-01 15:07 释蝉 阅读(77) 评论(0) 推荐(0) 编辑

摘要: 1、饿汉式(静态常量)[可用] public class Singleton { private static Singleton INSTANCE = new Singleton(); private Singleton(){} public static Singleton getInstanc 阅读全文
posted @ 2020-04-01 15:06 释蝉 阅读(128) 评论(0) 推荐(0) 编辑