摘要:
中文版本介绍 **项目地址:https://github.com/JohnYang1210/PycomCAD ** PyComCAD介绍及开发方法 1.综述 提到Autocad在工业界的二次开发,VB或者Lisp可能作为常用的传统的编程语言。但是,Python语言简洁,优雅,学习门槛低,理应在A 阅读全文
摘要:
这两行的意思是需要我们升级Maui.Controls的版本在8.0.14,取高版本。 同理,再次进行: 最后: 阅读全文
摘要:
Lazy<T>主要用在单例模式,是一种延迟加载(Lazy Loading)的机制,它允许您推迟对象的创建直到第一次访问该对象。这种方式在需要时才分配资源,能够提高性能和资源利用率。Lazy类提供了一个简单且线程安全的方法来实现延迟加载。以下是Lazy的一些主要特点和用法: 延迟加载:Lazy允许您将 阅读全文
摘要:
static void ParseTest(string str) { Regex reg = new Regex(@"(?<num>\d+)(?<sg>[_!$#])(?<dia>\d+)\s?((?<frn>\d+)(\/(?<nrn>\d+))*)?"); var m = reg.Match( 阅读全文
摘要:
internal class Program { const string Item = "Dictionary item"; const int Iterations = 1000000; public static string CurrentItem; static void Main(str 阅读全文
摘要:
cshtml一般是这样: @page @model IndexModel @{ ViewData["Title"] = "Home page"; } <div class="text-center"> <h1 class="display-4">Welcome</h1> <p>Learn about 阅读全文
摘要:
install-package WindowsAPICodePack var folderDialog = new CommonOpenFileDialog() { Title = "xxx", IsFolderPicker = true, }; if (folderDialog.ShowDialo 阅读全文
摘要:
字符串的存储长度是可变的,在C#中,BinaryWriter和BinaryReader在Write,ReadStirng的时候,都在单个流中字符串的二进制数组前面加了一个二进制数组的长度信息,方便读取的时候,造成了记录字符串的流并不纯粹是字符串的内容。但是,有时候,我们可以,也可能必须记录纯粹的字符 阅读全文
摘要:
(1)与关键字冲突,解决办法加@ var a = new { @class=1, }; var d = JsonConvert.SerializeObject(a); Console.WriteLine(d); output {"class":1} (2)接参数,dynamic神搭配! var a 阅读全文
摘要:
1.赋予参数 @page "{id}" @model RazorTest.Pages.TestBModel @{ } <p>TestBId is @Model.TestBId</p> using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore 阅读全文
摘要:
cshtml.cs using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace RazorTest.Pages { public class PrivacyModel : PageModel 阅读全文