随笔分类 -  c#

摘要:Binding and webContentTypeMapperType RawContentTypeMapper public class RawContentTypeMapper : WebContentTypeMapper { public override WebContentFormat 阅读全文
posted @ 2022-09-09 10:25 wolbo 阅读(74) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/70755385/2d-segment-and-infinite-line-intersection-algorithm https://stackoverflow.com/questions/70755385/2d-segme 阅读全文
posted @ 2022-09-01 18:41 wolbo 阅读(15) 评论(0) 推荐(0) 编辑
摘要:c# 调试时看不到变量值 表达式求值时 对类型xxx的引用声称该类型是在 xxxx 中定义的,但未能找到 Reference to type xxx claims it is defined in xxxx but it could not be found 原因程序加载了同名dll 一个类型中存在 阅读全文
posted @ 2021-12-28 09:28 wolbo 阅读(2354) 评论(0) 推荐(0) 编辑
摘要:The type initializer for 'Grpc.Core.Internal.PlatformApis' threw an exception. 原因重写了程序集加载 AppDomain.CurrentDomain.AssemblyResolve += delegate (object 阅读全文
posted @ 2021-12-27 19:42 wolbo 阅读(89) 评论(0) 推荐(0) 编辑
摘要:找到exe的配置文件 app.config为开发时模板 appname.exe.config为实际运行配置 在appname.exe.config中</configuration>上面增加以下节点 <system.diagnostics> <trace autoflush="true" /> <so 阅读全文
posted @ 2021-12-23 16:45 wolbo 阅读(144) 评论(0) 推荐(0) 编辑
摘要:数据结构 public enum AgvUpgradeStep { VersionCheck = 0, Downloading = 1, Updating = 2, Booting = 3 } public enum AgvUpgradeResult { Success = 0, Running = 阅读全文
posted @ 2021-10-19 22:36 wolbo 阅读(282) 评论(0) 推荐(1) 编辑
摘要:c# 根据proto文件自动生成代码配置 选中proto文件 右键属性 设置编译动作 protobuf编译 grpc存根根据实现角色配置 生成时报错: File not found. Import "common.proto" was not found or had errors. 修改cspro 阅读全文
posted @ 2021-08-25 10:28 wolbo 阅读(1230) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc 阅读全文
posted @ 2021-08-19 20:19 wolbo 阅读(54) 评论(0) 推荐(0) 编辑
摘要:1 根据ip替换 var OSInfo = Environment.OSVersion; string pathpart = "hosts"; if (OSInfo.Platform == PlatformID.Win32NT) { //is windows NT pathpart = "syste 阅读全文
posted @ 2020-02-15 10:45 wolbo 阅读(2488) 评论(0) 推荐(1) 编辑
摘要:private int Execute(string str, bool silence = false) { int result; try { Console.WriteLine("nuget " + str); Process process = this.ExecuteCMD(str); S 阅读全文
posted @ 2020-01-15 14:17 wolbo 阅读(533) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespace xxx.Common { static class TypeUtilities { public static List ... 阅读全文
posted @ 2019-10-12 14:10 wolbo 阅读(686) 评论(0) 推荐(0) 编辑
摘要:参考: https://itnext.io/delegates-anonymous-methods-and-lambda-expressions-5ea4e56bbd05 阅读全文
posted @ 2019-08-07 09:56 wolbo 阅读(126) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示