【水下机器人】 c#上位机,根据官方文档进行学习开发
简而言之,就是稳定强悍,跨设备,简单上手,资源丰富,强:
Announcing .NET 6 - The Fastest .NET Yet - .NET Blog.NET 6 is now available. It is easier to use, runs faster, and has many new features.https://devblogs.microsoft.com/dotnet/announcing-net-6/
跨平台框架.NET Multi-platform App UI (.NET MAUI),用于移动和桌面应用程序:
(使用 C# 和 XAML)
.NET MAUI项目地址:
https://github.com/dotnet/mauihttps://github.com/dotnet/maui学习.NET MAUI的文档
.NET 多平台应用 UI 文档 - .NET MAUI | Microsoft Docs.NET 多平台应用 UI (.NET MAUI) 允许你使用 .NET 跨平台 UI 工具包生成本机应用,该工具包面向Android、iOS、macOS、Windows和 Tizen 上的移动和桌面外形规格。https://docs.microsoft.com/zh-cn/dotnet/maui/
学习C#10:
Welcome to C# 10 - .NET BlogCheck out the great new features in C# 10 as part of .NET 6 and Visual Studio 2022, that make your code prettier, more expressive, and faster.https://devblogs.microsoft.com/dotnet/welcome-to-csharp-10/详细的看上面的链接,里面描述了许多激动人心的改进。
比如:
(1)Global and implicit usings;
显式的global using有点像C语言的全局变量,但隐式的则不一样,更灵活
(详见:implicit usings)
global using System; global using static System.Console; global using Env = System.Environment;
(2)Combining using features;
大概是说可以删除隐式using导入的命名空间。
<ItemGroup> <Using Remove="System.Threading.Tasks" /> </ItemGroup> <ItemGroup> <Using Include="System.IO.Pipes" /> </ItemGroup>
(3)File-scoped namespaces
....详细的看上面的c#10的链接,看不懂英文的用谷歌浏览器,鼠标右击然后选“翻译成中文”。
上述操作的翻译后效果图如下:
......
可参考如下资料:
Table of contents - C# language specification | Microsoft DocsThis contains the detailed table of contents, listing each clause in the standardhttps://docs.microsoft.com/zh-cn/dotnet/csharp/language-reference/language-specification/readme
闲暇之余可看看:
.NET BlogFree. Cross-platform. Open source. A developer platform for building all your apps.https://devblogs.microsoft.com/dotnet/