摘要:
public static void Start() { logger.Debug("Startup WebAPI..."); SwaggerConfig.Register(); GlobalConfiguration.Configure(WebApiConfig.Register); 。。。 pu 阅读全文
摘要:
.get cookie with your browser then can do using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Syste 阅读全文
摘要:
git撤销远已经push到程服务器上某次提交 问题: 不小心把一次错误的代码push到远程服务器上的分支上,或者没有merge强制将本地的方法push到git服务器上。 解决方法: 输入 git log。 找到错误提交之前的git push的 commit_id (即正确时候的commit_id) 阅读全文
摘要:
. using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsA 阅读全文
摘要:
1. 在项目根目录创建Strings文件夹,再Strings文件夹创建需要的语言名子目录,再添加资源文件Resources.resw,目录构如: Strings\en-US\Resources.resw ,Strings\zh-CN\Resources.resw 2. 在各语言的Resources. 阅读全文
摘要:
//老版本的方法: // var check= CurrentAppSimulator.LicenseInformation.IsActive && CurrentAppSimulator.LicenseInformation.IsTrial; private StoreContext contex 阅读全文
摘要:
List<Pics> pics = new List<Pics>(); for (int i = 0; i < 2000; i++) { pics.Add(new Pics() { cat="滴滴滴", catid="2", cover="333333333333333333333333333333 阅读全文
摘要:
看到一个老代码里的方法,是判断两个string 数组是否存在相同的元素: 快一百行代码了。。。。。 public bool HasRole(string[] roleList) { bool result; string[] roleListStored, roleListInput; string 阅读全文
摘要:
参考文字: https://mtaulty.com/2016/08/10/windows-10-uwp-and-composition-light-and-shade/ <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBr 阅读全文
摘要:
c# Progress<T> 用于显示进度。。。。。。。。主要是利用IProgress<T> 的Report(T)方法: private void BtnDownload_Click(object sender, RoutedEventArgs e) { var pp = new Progress< 阅读全文