![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 55
Kent Gu
这个作者很懒,什么都没留下…
展开
-
Source insight 常规设置
#1,Source Insight 4.0 的中文注释为乱码解决办法(source insight 3.5 及以下版本就到其他地方看看吧)1、【临时解决办法】:只针对当前文件解决中文乱码。菜单栏中【File】->【Reload As Encoding...】->【Chinese Simplified (GB18030)】->选择后,点击load,问题解决。——————————————————————————————————————2、【彻底解决办法】:对所有文件乱码解原创 2021-04-22 08:17:01 · 246 阅读 · 0 评论 -
VSCode C# Debugging Problem (The terminal process failed to launch: Path to shell execut
https://stackoverflow.com/questions/63088161/visual-studio-code-c-sharp-debugging-problem-the-terminal-process-failed-to-lauI created a workspace using dotnet new console, wrote some code. But when I try to start debugging it using the option Run/Start d转载 2021-01-22 14:51:24 · 3517 阅读 · 0 评论 -
手工编辑 tasks.json 和 launch.json,让你的 VSCode 具备调试 .NET Core 程序的能力
转:https://walterlv.blog.csdn.net/article/details/89631513?utm_medium=distribute.pc_relevant_t0.none-task-blog-OPENSEARCH-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-OPENSEARCH-1.control如果 C# for Visual Studio Code 没有办法自动为你生成转载 2021-01-22 13:13:48 · 329 阅读 · 0 评论 -
在Linux下使用VSCode如何调试C#控制台程序-2
转:https://walterlv.blog.csdn.net/article/details/89631197?utm_medium=distribute.pc_relevant.none-task-blog-OPENSEARCH-3.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-OPENSEARCH-3.control如果你是开发个人项目,那就直接用 Visual Studio Community 版本吧,转载 2021-01-22 13:12:17 · 1144 阅读 · 0 评论 -
在Linux下使用VSCode如何调试C#控制台程序-1
转:https://www.cnblogs.com/lxhbky/p/6673230.htmlA-环境安装https://www.microsoft.com/net/download下载.NET Core SDK Installer:https://www.microsoft.com/net/download/coreVSCode :https://code.visualstudio.com/VSCode C#插件:可以在安装好的VSCode里的插件扩展中搜索安装:.转载 2021-01-22 13:00:54 · 1266 阅读 · 0 评论 -
VS setting With WSL in window10,怎么使用VSCode
转:https://code.visualstudio.com/docs/getstarted/tips-and-tricks1. 链接 Windows 和 WSL下的Ubuntu安装Remote-WSL, The Remote - WSL extension lets you use VS Code on Windows to build Linux applications that run on the Windows Subsystem for Linux (WSL). You get all原创 2021-01-17 21:44:11 · 179 阅读 · 0 评论 -
C# fileinfo, directoryinfo 用法
It run well in linux> using System; using System.IO; namespace App {> class Program> {> static void Main(string[] args)> {> string path = System.IO.Directory.GetCurrentDirectory();> Console原创 2021-01-17 19:21:10 · 158 阅读 · 0 评论 -
C#线程
转:使用线程,需要using System.Threading1. 线程执行的程序代码由ThreadStart委托或ParameterizedThreadStart委托指定。Thread MyThread = new Thread(new ThreadStart(MyMethod));启动主线程MyThread.Start();通过主线程阻止新开线程MyThread.Abort();4.等待新开的线程结束MyThread.Join();1.2 线程实例C# 创建一个新线程原创 2021-01-15 11:21:07 · 99 阅读 · 0 评论 -
Hex文件读操作
1. 文件 & 文件夹操作转:https://www.cnblogs.com/fuqiang88/p/7866458.html2. Hex file 和 EXE在同一个文件下,Hex文件打开不成功string path = System.IO.Directory.GetCurrentDirectory();//获取应用程序的当前工作目录 DirectoryInfo openDirecotry = new DirectoryInfo(path); //文件夹列表原创 2021-01-14 16:56:39 · 1209 阅读 · 0 评论 -
C# 事件
转:https://www.cnblogs.com/vickylinj/p/10922139.html转载 2021-01-14 09:40:57 · 68 阅读 · 0 评论 -
C#委托介绍
转:https://www.cnblogs.com/vickylinj/p/10922139.htmlhttps://www.cnblogs.com/randomize/articles/2813687.html1.概念:在C#中,委托(delegate)是一种引用类型,在其他语言中,与委托最接近的***是函数指针***,但委托不仅存储对方法入口点的引用,还存储对用于调用方法的对象实例的引用。 简单的讲委托(delegate)是一种类型安全的函数指针2. 如 C++, 函数指针int Max(in原创 2021-01-13 14:45:38 · 462 阅读 · 1 评论 -
C# 类型理解
转:1. 值类型值类型通常被人们称为轻量级的类型,因为在大多数情况下,值类型的的实例都分配在线程栈中,因此它不受垃圾回收的控制,缓解了托管堆中的压力,减少了应用程序的垃圾回收的次数,提高性能。2. 引用类型,c#中所有的类都是引用类型所有的引用类型的实例都分配在托管堆上,c#中new操作符会返回一个内存地址指向当前的对象。所以当你在创建个一个引用类型实例的时候,你必须要考虑以下问题:...转载 2021-01-13 14:21:10 · 97 阅读 · 0 评论 -
Console SW C#(控制台开发 read, write介绍)
转:https://docs.microsoft.com/zh-cn/dotnet/api/system.console?view=net-5.01. ReadLine() 从标准输入流读取下一行字符。2. WriteLine() 将当前行终止符写入标准输出流。原创 2021-01-13 14:15:13 · 180 阅读 · 0 评论 -
开发.net in Windows, 设置以及hello wold App
1. Download dotnet(.dotnet 5.0 SDK), VS 16.8以上版本才能用dotnet 5.0SDK2. VS 中创建 .net core 2.1 VS中设置 4.2 VS 组件安装 2.2创建 C# .net core console原创 2021-01-12 22:36:31 · 89 阅读 · 0 评论 -
serial App,用.dot在Windows VS下开发的控制台,在Ubuntu能直接运行。
1. Install netstandard2.0原创 2021-01-12 16:18:34 · 127 阅读 · 0 评论 -
VS Nugget的设置 和 VSCode 的Nuget设置
1. Nuget, 安装程序包2. Nuget程序包源加进VS测试\选项\Nuget包管理器\程序包源https://www.nuget.org/api/v2/原创 2021-01-11 18:09:10 · 1240 阅读 · 0 评论 -
安装.net core & 创建实例 for Ubuntu 20.04
.Dotnet core web, include for windows, linux and Macohttps://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/intro2.dotnet常识https://docs.microsoft.com/zh-cn/dotnet/core/install/linux安装 ASP.NET Core 5.0 运行时:aspnetcore-runtime-5.0安装 .NET Core 2.原创 2021-01-11 14:14:12 · 503 阅读 · 0 评论 -
安装VS in Unubuntu
1. download viusal studiohttps://code.visualstudio.com/docs/editor/intellisense2. Download dotnet(.dotnet 5.0 SDK)3. Run hellow word program.3. 1 create your app: dotnet new console -o myAppThe dotnet new console command creates a new console ap.翻译 2021-01-11 09:43:04 · 181 阅读 · 0 评论 -
解决Microsoft.Jet.OLEDB.4.0 不能在64位系统下使用的问题
可靠简单的 解决Microsoft.Jet.OLEDB.4.0 不能在64位系统下使用的问题第一步,先安装Microsoft Access Database Engine 2010 Redistributablehttp://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=C06B8369-60DD-4B64-A44B-84B3...转载 2020-02-29 21:47:12 · 2061 阅读 · 1 评论